Skip to content

Commit 1fb00d5

Browse files
author
timlinux
committed
Fix for showing incorrect symbol type when creating legend entries following recent api updates
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9494 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 9679c5a commit 1fb00d5

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/legend/qgslegendlayer.cpp

+1-1
Original file line numberDiff line numberDiff line change
@@ -439,7 +439,7 @@ QPixmap QgsLegendLayer::getOriginalPixmap() const
439439
if ( firstLayer->type() == QgsMapLayer::VectorLayer )
440440
{
441441
QgsVectorLayer* vlayer = dynamic_cast<QgsVectorLayer*>( firstLayer );
442-
switch ( vlayer->type() )
442+
switch ( vlayer->geometryType() )
443443
{
444444
case QGis::Point:
445445
return QgisApp::getThemePixmap( "/mIconPointLayer.png" );

0 commit comments

Comments
 (0)