Skip to content

Commit

Permalink
Fixed conversion to subclasses of QgsFeatureRendererV2
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 7, 2009
1 parent 3b9b010 commit 266e511
Showing 1 changed file with 13 additions and 0 deletions.
13 changes: 13 additions & 0 deletions python/core/symbology-ng-core.sip
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 266e511

Please sign in to comment.