Skip to content

Commit 266e511

Browse files
author
wonder
committed
Fixed conversion to subclasses of QgsFeatureRendererV2
git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
1 parent 3b9b010 commit 266e511

File tree

1 file changed

+13
-0
lines changed

1 file changed

+13
-0
lines changed

python/core/symbology-ng-core.sip

+13
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)