[QGIS Commit] r12173 - trunk/qgis/src/gui

svn_qgis at osgeo.org svn_qgis at osgeo.org
Wed Nov 18 13:28:11 EST 2009


Author: wonder
Date: 2009-11-18 13:28:10 -0500 (Wed, 18 Nov 2009)
New Revision: 12173

Modified:
   trunk/qgis/src/gui/qgsquickprint.cpp
Log:
Fixed a crash in quick print when using symbology-ng


Modified: trunk/qgis/src/gui/qgsquickprint.cpp
===================================================================
--- trunk/qgis/src/gui/qgsquickprint.cpp	2009-11-18 18:22:58 UTC (rev 12172)
+++ trunk/qgis/src/gui/qgsquickprint.cpp	2009-11-18 18:28:10 UTC (rev 12173)
@@ -403,7 +403,8 @@
     {
       QgsVectorLayer *mypVectorLayer  =
         qobject_cast<QgsVectorLayer *>( mypLayer );
-      if ( mypVectorLayer )
+      // TODO: add support for symbology-ng renderers
+      if ( mypVectorLayer && mypVectorLayer->renderer() )
       {
         QString myLayerName = mypVectorLayer->name();
         QIcon myIcon;



More information about the QGIS-commit mailing list