Skip to content

Commit 12b058b

Browse files
author
jef
committed
fix a warning
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@9021 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent e7ff164 commit 12b058b

File tree

1 file changed

+3
-6
lines changed

1 file changed

+3
-6
lines changed

src/app/legend/qgslegendlayer.cpp

+3-6
Original file line numberDiff line numberDiff line change
@@ -460,15 +460,12 @@ QPixmap QgsLegendLayer::getOriginalPixmap() const
460460
QPixmap myPixmap(32,32);
461461
rlayer->drawThumbnail(&myPixmap);
462462
return myPixmap;
463-
464-
}
465-
else // undefined - should never reach this
466-
{
467-
return QgisApp::getThemePixmap("/mIconLayer.png");
468463
}
469464
}
470-
}
471465

466+
// undefined - should never reach this
467+
return QgisApp::getThemePixmap("/mIconLayer.png");
468+
}
472469

473470
void QgsLegendLayer::addToPopupMenu(QMenu& theMenu, QAction* toggleEditingAction)
474471
{

0 commit comments

Comments
 (0)