[QGIS Commit] r12435 - trunk/qgis/python/core

svn_qgis at osgeo.org svn_qgis at osgeo.org
Sun Dec 13 09:28:22 EST 2009


Author: wonder
Date: 2009-12-13 09:28:22 -0500 (Sun, 13 Dec 2009)
New Revision: 12435

Modified:
   trunk/qgis/python/core/symbology-ng-core.sip
Log:
PyQGIS: Fixed slightly embarrassing conversion to subclasses in symbology-ng


Modified: trunk/qgis/python/core/symbology-ng-core.sip
===================================================================
--- trunk/qgis/python/core/symbology-ng-core.sip	2009-12-13 14:18:34 UTC (rev 12434)
+++ trunk/qgis/python/core/symbology-ng-core.sip	2009-12-13 14:28:22 UTC (rev 12435)
@@ -324,8 +324,8 @@
   switch (sipCpp->type())
   {
     case QgsSymbolV2::Marker: sipClass = sipClass_QgsMarkerSymbolLayerV2; break;
-    case QgsSymbolV2::Line: sipClass = sipClass_QgsMarkerSymbolLayerV2; break;
-    case QgsSymbolV2::Fill: sipClass = sipClass_QgsMarkerSymbolLayerV2; break;
+    case QgsSymbolV2::Line: sipClass = sipClass_QgsLineSymbolLayerV2; break;
+    case QgsSymbolV2::Fill: sipClass = sipClass_QgsFillSymbolLayerV2; break;
     default: sipClass = 0; break;
   }
 %End
@@ -440,8 +440,8 @@
   switch (sipCpp->type())
   {
     case QgsSymbolV2::Marker: sipClass = sipClass_QgsMarkerSymbolV2; break;
-    case QgsSymbolV2::Line: sipClass = sipClass_QgsMarkerSymbolV2; break;
-    case QgsSymbolV2::Fill: sipClass = sipClass_QgsMarkerSymbolV2; break;
+    case QgsSymbolV2::Line: sipClass = sipClass_QgsLineSymbolV2; break;
+    case QgsSymbolV2::Fill: sipClass = sipClass_QgsFillSymbolV2; break;
     default: sipClass = 0; break;
   }
 %End



More information about the QGIS-commit mailing list