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

svn_qgis at osgeo.org svn_qgis at osgeo.org
Thu Jul 8 07:09:40 EDT 2010


Author: mhugent
Date: 2010-07-08 11:09:39 +0000 (Thu, 08 Jul 2010)
New Revision: 13899

Modified:
   trunk/qgis/src/app/legend/qgslegendlayer.cpp
Log:
Disable raster legend icon for release because of performance problems

Modified: trunk/qgis/src/app/legend/qgslegendlayer.cpp
===================================================================
--- trunk/qgis/src/app/legend/qgslegendlayer.cpp	2010-07-08 06:39:02 UTC (rev 13898)
+++ trunk/qgis/src/app/legend/qgslegendlayer.cpp	2010-07-08 11:09:39 UTC (rev 13899)
@@ -365,10 +365,13 @@
     }
     else if ( theLayer->type() == QgsMapLayer::RasterLayer )
     {
+#if 0 //MH100708: disabled for 1.5 release because of performance problems
       QgsRasterLayer* rlayer = qobject_cast<QgsRasterLayer *>( theLayer );
       QPixmap myPixmap( 32, 32 );
       rlayer->thumbnailAsPixmap( &myPixmap );
       return myPixmap;
+#endif //0
+      return QPixmap();
     }
   }
 



More information about the QGIS-commit mailing list