Skip to content

Commit 43183fa

Browse files
author
wonder
committedDec 7, 2009
Fixed conversion to subclasses of QgsFeatureRendererV2
git-svn-id: http://svn.osgeo.org/qgis/trunk@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent bf80c39 commit 43183fa

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed
 

‎python/core/symbology-ng-core.sip

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,19 @@ class QgsFeatureRendererV2
3434
#include <qgsrendererv2.h>
3535
%End
3636

37+
38+
%ConvertToSubClassCode
39+
if (sipCpp->type() == "singleSymbol")
40+
sipClass = sipClass_QgsSingleSymbolRendererV2;
41+
else if (sipCpp->type() == "categorizedSymbol")
42+
sipClass = sipClass_QgsCategorizedSymbolRendererV2;
43+
else if (sipCpp->type() == "graduatedSymbol")
44+
sipClass = sipClass_QgsGraduatedSymbolRendererV2;
45+
else
46+
sipClass = 0;
47+
%End
48+
49+
3750
public:
3851

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

0 commit comments

Comments
 (0)
Please sign in to comment.