Skip to content

Commit

Permalink
Fixed a bug where the geometry type of the composer legend was not re…
Browse files Browse the repository at this point in the history
…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 d97dfd7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/composer/qgslegendmodel.cpp
Expand Up @@ -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 ) );
Expand Down

0 comments on commit d97dfd7

Please sign in to comment.