mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-25 00:58:06 -05:00
Fixed bug that prevented layer name to be drawn when opening a single symbol layer from a project file
git-svn-id: http://svn.osgeo.org/qgis/trunk@693 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
94cadd6e61
commit
b95bdae3c5
@ -12,7 +12,7 @@
|
||||
* (at your option) any later version. *
|
||||
* *
|
||||
***************************************************************************/
|
||||
/* qgsprojectio.cpp,v 1.24 2004/02/04 07:15:46 mhugent Exp */
|
||||
/* qgsprojectio.cpp,v 1.25 2004/02/04 12:03:43 mhugent Exp */
|
||||
#include <iostream>
|
||||
#include <fstream>
|
||||
#include <qfiledialog.h>
|
||||
@ -212,6 +212,11 @@ bool QgsProjectIo::read(){
|
||||
dbl->setRenderer(srenderer);
|
||||
QgsSiSyDialog* sdialog=new QgsSiSyDialog(dbl);
|
||||
dbl->setRendererDialog(sdialog);
|
||||
|
||||
QgsDlgVectorLayerProperties* properties = new QgsDlgVectorLayerProperties(dbl);
|
||||
dbl->setLayerProperties(properties);
|
||||
properties->setLegendType("graduated symbol");
|
||||
|
||||
sdialog->apply();
|
||||
}
|
||||
|
||||
@ -275,10 +280,12 @@ bool QgsProjectIo::read(){
|
||||
dbl->setRenderer(grenderer);
|
||||
QgsGraSyDialog* gdialog=new QgsGraSyDialog(dbl);
|
||||
dbl->setRendererDialog(gdialog);
|
||||
gdialog->apply();
|
||||
|
||||
QgsDlgVectorLayerProperties* properties = new QgsDlgVectorLayerProperties(dbl);
|
||||
dbl->setLayerProperties(properties);
|
||||
properties->setLegendType("graduated symbol");
|
||||
|
||||
gdialog->apply();
|
||||
}
|
||||
|
||||
else if(!continuousnode.isNull())//read configuration for continuous symbol
|
||||
@ -372,11 +379,13 @@ bool QgsProjectIo::read(){
|
||||
dbl->setRenderer(crenderer);
|
||||
QgsContColDialog* cdialog=new QgsContColDialog(dbl);
|
||||
dbl->setRendererDialog(cdialog);
|
||||
cdialog->apply();
|
||||
|
||||
QgsDlgVectorLayerProperties* properties = new QgsDlgVectorLayerProperties(dbl);
|
||||
dbl->setLayerProperties(properties);
|
||||
properties->setLegendType("continuous color");
|
||||
|
||||
cdialog->apply();
|
||||
|
||||
}
|
||||
|
||||
dbl->setVisible(visible == "1");
|
||||
|
Loading…
x
Reference in New Issue
Block a user