[QGIS Commit] r9021 - trunk/qgis/src/app/legend

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Aug 7 09:33:02 EDT 2008


Author: jef
Date: 2008-08-07 09:33:02 -0400 (Thu, 07 Aug 2008)
New Revision: 9021

Modified:
   trunk/qgis/src/app/legend/qgslegendlayer.cpp
Log:
fix a warning

Modified: trunk/qgis/src/app/legend/qgslegendlayer.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendlayer.cpp	2008-08-07 10:10:17 UTC (rev 9020)
+++ trunk/qgis/src/app/legend/qgslegendlayer.cpp	2008-08-07 13:33:02 UTC (rev 9021)
@@ -460,15 +460,12 @@
       QPixmap myPixmap(32,32);
       rlayer->drawThumbnail(&myPixmap);
       return myPixmap;
-      
     }
-    else // undefined - should never reach this
-    {
-      return QgisApp::getThemePixmap("/mIconLayer.png");
-    }
   }
-}
 
+  // undefined - should never reach this
+  return QgisApp::getThemePixmap("/mIconLayer.png");
+}			
 
 void QgsLegendLayer::addToPopupMenu(QMenu& theMenu, QAction* toggleEditingAction)
 {



More information about the QGIS-commit mailing list