[QGIS Commit] r9738 - trunk/qgis/src/core/composer

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Dec 4 05:58:00 EST 2008


Author: mhugent
Date: 2008-12-04 05:58:00 -0500 (Thu, 04 Dec 2008)
New Revision: 9738

Modified:
   trunk/qgis/src/core/composer/qgslegendmodel.cpp
Log:
Fixed a bug where the geometry type of the composer legend was not restored correctly from XML

Modified: trunk/qgis/src/core/composer/qgslegendmodel.cpp
===================================================================
--- trunk/qgis/src/core/composer/qgslegendmodel.cpp	2008-12-04 08:49:56 UTC (rev 9737)
+++ trunk/qgis/src/core/composer/qgslegendmodel.cpp	2008-12-04 10:58:00 UTC (rev 9738)
@@ -599,7 +599,7 @@
           QDomNodeList symbolNodeList = currentChildElement.elementsByTagName( "symbol" );
           if ( symbolNodeList.size() > 0 )
           {
-            QgsSymbol* symbol = new QgsSymbol( vectorLayer->type() );
+            QgsSymbol* symbol = new QgsSymbol( vectorLayer->geometryType() );
             QDomNode symbolNode = symbolNodeList.at( 0 );
             symbol->readXML( symbolNode );
             childItem->setData( QVariant::fromValue(( void* )symbol ) );



More information about the QGIS-commit mailing list