Skip to content
Permalink
Browse files

Fix #7866

  • Loading branch information
mhugent committed May 23, 2013
1 parent 827f2d4 commit 818d97ee40ddc3c72453adb114c257dd7cd54ce1
@@ -142,7 +142,7 @@ QgsCategorizedSymbolRendererV2::QgsCategorizedSymbolRendererV2( QString attrName
mCategories( categories ),
mSourceSymbol( NULL ),
mSourceColorRamp( NULL ),
mScaleMethod( QgsSymbolV2::ScaleArea ),
mScaleMethod( DEFAULT_SCALE_METHOD ),
mRotationFieldIdx( -1 ),
mSizeScaleFieldIdx( -1 )
{
@@ -158,7 +158,7 @@ QgsGraduatedSymbolRendererV2::QgsGraduatedSymbolRendererV2( QString attrName, Qg
mMode( Custom ),
mSourceSymbol( NULL ),
mSourceColorRamp( NULL ),
mScaleMethod( QgsSymbolV2::ScaleArea ),
mScaleMethod( DEFAULT_SCALE_METHOD ),
mRotationFieldIdx( -1 ),
mSizeScaleFieldIdx( -1 )
{
@@ -24,7 +24,6 @@
#define DEFAULT_SIMPLEMARKER_BORDERCOLOR QColor(0,0,0)
#define DEFAULT_SIMPLEMARKER_SIZE DEFAULT_POINT_SIZE
#define DEFAULT_SIMPLEMARKER_ANGLE 0
#define DEFAULT_SCALE_METHOD QgsSymbolV2::ScaleArea

#include <QPen>
#include <QBrush>
@@ -27,7 +27,8 @@
#include <QDomElement>

QgsSingleSymbolRendererV2::QgsSingleSymbolRendererV2( QgsSymbolV2* symbol )
: QgsFeatureRendererV2( "singleSymbol" ), mRotationFieldIdx( -1 ), mSizeScaleFieldIdx( -1 ), mTempSymbol( NULL )
: QgsFeatureRendererV2( "singleSymbol" ), mScaleMethod( DEFAULT_SCALE_METHOD ), mRotationFieldIdx( -1 ),
mSizeScaleFieldIdx( -1 ), mTempSymbol( NULL )
{
Q_ASSERT( symbol );
mSymbol = symbol;
@@ -21,6 +21,7 @@
#endif

#define DEG2RAD(x) ((x)*M_PI/180)
#define DEFAULT_SCALE_METHOD QgsSymbolV2::ScaleArea

#include <QColor>
#include <QMap>

0 comments on commit 818d97e

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