mirror of
https://github.com/qgis/QGIS.git
synced 2025-10-15 00:02:52 -04:00
Fixed conversion to subclasses of QgsFeatureRendererV2
git-svn-id: http://svn.osgeo.org/qgis/trunk@12357 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
parent
bf80c39a07
commit
43183fa5c7
@ -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
|
||||
|
Loading…
x
Reference in New Issue
Block a user