Skip to content
Permalink
Browse files
Fixed a bug where the geometry type of the composer legend was not re…
…stored correctly from XML

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9738 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
mhugent committed Dec 4, 2008
1 parent 6350d2d commit d97dfd7c7fe720249cb9266b19b0dfc1f3feaa20
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/composer/qgslegendmodel.cpp
@@ -599,7 +599,7 @@ bool QgsLegendModel::readXML( const QDomElement& legendModelElem, const QDomDocu
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 ) );

0 comments on commit d97dfd7

Please sign in to comment.