Skip to content
Permalink
Browse files

Fixed conversion to subclasses of QgsFeatureRendererV2

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder
wonder committed Dec 7, 2009
1 parent 3b9b010 commit 266e51195d78393198ec8d951cdb63705d63696d
Showing with 13 additions and 0 deletions.
  1. +13 −0 python/core/symbology-ng-core.sip
@@ -34,6 +34,19 @@ class QgsFeatureRendererV2
#include <qgsrendererv2.h>
%End


%ConvertToSubClassCode
if (sipCpp->type() == "singleSymbol")
sipClass = sipClass_QgsSingleSymbolRendererV2;
else if (sipCpp->type() == "categorizedSymbol")
sipClass = sipClass_QgsCategorizedSymbolRendererV2;
else if (sipCpp->type() == "graduatedSymbol")
sipClass = sipClass_QgsGraduatedSymbolRendererV2;
else
sipClass = 0;
%End


public:

//! return a new renderer - used by default in vector layers

0 comments on commit 266e511

Please sign in to comment.
You can’t perform that action at this time.