Skip to content
Permalink
Browse files

fix most cppcheck warnings and implement suggestions

also update and sync some sip interfaces
  • Loading branch information
jef-n committed Jan 5, 2014
1 parent d7237b7 commit 190c0511bc8ce9e1380c4497aa06a8fde383eda8
Showing with 606 additions and 636 deletions.
  1. +8 −8 python/core/qgsmaplayer.sip
  2. +97 −38 python/core/qgsvectorlayer.sip
  3. +20 −7 python/core/symbology-ng/qgsfillsymbollayerv2.sip
  4. +0 −1 src/analysis/interpolation/DualEdgeTriangulation.cc
  5. +2 −15 src/analysis/interpolation/MathUtils.cc
  6. +6 −6 src/analysis/interpolation/NormVecDecorator.cc
  7. +1 −1 src/app/composer/qgscompositionwidget.cpp
  8. +1 −1 src/app/gps/qgsgpsmarker.cpp
  9. +1 −1 src/app/legend/qgslegend.cpp
  10. +2 −2 src/app/legend/qgslegenditem.cpp
  11. +0 −1 src/app/legend/qgslegendlayer.cpp
  12. +7 −7 src/app/pluginmanager/qgspluginmanager.cpp
  13. +17 −8 src/app/qgisapp.cpp
  14. +3 −3 src/app/qgisapp.h
  15. +2 −2 src/app/qgsattributetypedialog.cpp
  16. +2 −2 src/app/qgsattributetypeloaddialog.cpp
  17. +0 −11 src/app/qgsdecorationnortharrow.cpp
  18. +0 −2 src/app/qgsdecorationscalebar.cpp
  19. +11 −11 src/app/qgsidentifyresultsdialog.cpp
  20. +2 −6 src/app/qgslabelinggui.cpp
  21. +0 −1 src/app/qgsmaptoollabel.cpp
  22. +8 −4 src/app/qgsmaptoolpinlabels.cpp
  23. +1 −1 src/app/qgsmaptoolselectutils.cpp
  24. +1 −1 src/app/qgsmaptoolselectutils.h
  25. +2 −11 src/app/qgspluginregistry.cpp
  26. +3 −3 src/app/qgsprojectproperties.cpp
  27. +1 −1 src/core/composer/qgscomposereffect.cpp
  28. +1 −1 src/core/composer/qgscomposereffect.h
  29. +1 −1 src/core/composer/qgscomposeritem.cpp
  30. +0 −6 src/core/composer/qgscomposermap.cpp
  31. +8 −8 src/core/dxf/qgsdxfexport.cpp
  32. +1 −2 src/core/pal/feature.cpp
  33. +5 −5 src/core/pal/pal.cpp
  34. +14 −16 src/core/pal/problem.cpp
  35. +6 −6 src/core/qgsapplication.cpp
  36. +6 −6 src/core/qgsapplication.h
  37. +1 −1 src/core/qgsattributeaction.cpp
  38. +4 −4 src/core/qgscoordinatereferencesystem.cpp
  39. +4 −4 src/core/qgscoordinatereferencesystem.h
  40. +18 −18 src/core/qgscoordinatetransform.cpp
  41. +2 −2 src/core/qgsexpression.cpp
  42. +2 −2 src/core/qgsexpression.h
  43. +7 −21 src/core/qgsgeometry.cpp
  44. +6 −6 src/core/qgsmaplayer.cpp
  45. +9 −9 src/core/qgsmaplayer.h
  46. +4 −4 src/core/qgsmaprenderer.cpp
  47. +2 −2 src/core/qgsmaprenderer.h
  48. +1 −4 src/core/qgsmaptopixelgeometrysimplifier.cpp
  49. +3 −7 src/core/qgsogcutils.cpp
  50. +2 −2 src/core/qgsogcutils.h
  51. +1 −3 src/core/qgspallabeling.cpp
  52. +2 −2 src/core/qgsprojectfiletransform.cpp
  53. +2 −2 src/core/qgsprojectfiletransform.h
  54. +14 −15 src/core/qgsprojectproperty.cpp
  55. +1 −1 src/core/qgsprojectproperty.h
  56. +3 −3 src/core/qgsproviderregistry.cpp
  57. +8 −8 src/core/qgsvectorlayer.cpp
  58. +7 −15 src/core/qgsvectorlayer.h
  59. +2 −2 src/core/qgsvectorlayereditbuffer.cpp
  60. +1 −1 src/core/qgsvectorlayerfeatureiterator.cpp
  61. +2 −2 src/core/raster/qgsmultibandcolorrenderer.cpp
  62. +1 −4 src/core/raster/qgssinglebandcolordatarenderer.cpp
  63. +2 −2 src/core/spatialite/spatialite.c
  64. +2 −2 src/core/symbology-ng/qgscategorizedsymbolrendererv2.cpp
  65. +5 −5 src/core/symbology-ng/qgsfillsymbollayerv2.cpp
  66. +7 −5 src/core/symbology-ng/qgsfillsymbollayerv2.h
  67. +2 −7 src/core/symbology-ng/qgsgraduatedsymbolrendererv2.cpp
  68. +2 −2 src/core/symbology-ng/qgsrulebasedrendererv2.cpp
  69. +1 −1 src/core/symbology-ng/qgsstylev2.cpp
  70. +5 −1 src/core/symbology-ng/qgssymbollayerv2utils.cpp
  71. +1 −0 src/gui/qgisgui.h
  72. +6 −6 src/gui/qgsattributeeditor.cpp
  73. +2 −3 src/gui/qgscollapsiblegroupbox.cpp
  74. +3 −3 src/gui/qgsmapcanvas.cpp
  75. +1 −1 src/gui/qgsmaptoolidentify.cpp
  76. +1 −1 src/gui/qgsowssourceselect.cpp
  77. +1 −2 src/gui/symbology-ng/qgscptcitycolorrampv2dialog.cpp
  78. +8 −18 src/mapserver/qgis_map_serv.cpp
  79. +15 −11 src/mapserver/qgsprojectparser.cpp
  80. +4 −4 src/mapserver/qgssldparser.cpp
  81. +3 −3 src/mapserver/qgssldparser.h
  82. +2 −2 src/mapserver/qgssoaprequesthandler.cpp
  83. +16 −16 src/mapserver/qgswfsserver.cpp
  84. +7 −9 src/mapserver/qgswmsserver.cpp
  85. +2 −0 src/mapserver/qgswmsserver.h
  86. +3 −3 src/plugins/compass/qgscompassplugin.cpp
  87. +16 −22 src/plugins/dxf2shp_converter/builder.cpp
  88. +5 −6 src/plugins/evis/evis.cpp
  89. +1 −1 src/plugins/georeferencer/qgsgcplist.cpp
  90. +4 −4 src/plugins/georeferencer/qgsgeorefplugin.cpp
  91. +1 −1 src/plugins/georeferencer/qgsgeorefplugingui.cpp
  92. +1 −1 src/plugins/georeferencer/qgsgeorefplugingui.h
  93. +4 −4 src/plugins/georeferencer/qgsgeoreftransform.cpp
  94. +2 −1 src/plugins/georeferencer/qgsimagewarper.cpp
  95. +1 −1 src/plugins/georeferencer/qgsleastsquares.cpp
  96. +1 −1 src/plugins/georeferencer/qgsmapcoordsdialog.cpp
  97. +1 −1 src/plugins/georeferencer/qgsmapcoordsdialog.h
  98. +1 −1 src/plugins/globe/globe_plugin.cpp
  99. +1 −1 src/plugins/globe/osgEarthUtil/Controls.cpp
  100. +7 −4 src/plugins/grass/qgsgrassmapcalc.cpp
  101. +3 −1 src/plugins/grass/qgsgrassmodel.cpp
  102. +0 −1 src/plugins/grass/qgsgrassmodule.cpp
  103. +9 −8 src/plugins/grass/qgsgrassplugin.cpp
  104. +1 −1 src/plugins/grass/qgsgrassplugin.h
  105. +2 −2 src/plugins/grass/qgsgrasstools.cpp
  106. +3 −4 src/plugins/heatmap/heatmap.cpp
  107. +0 −1 src/plugins/interpolation/qgsinterpolationdialog.cpp
  108. +3 −3 src/plugins/oracle_raster/qgsoracle_plugin.cpp
  109. +3 −3 src/plugins/roadgraph/roadgraphplugin.cpp
  110. +1 −1 src/plugins/spatialquery/qgsgeometrycoordinatetransform.h
  111. +1 −1 src/plugins/spatialquery/qgsreaderfeatures.cpp
  112. +2 −3 src/plugins/spatialquery/qgsspatialquery.cpp
  113. +0 −5 src/plugins/spatialquery/qgsspatialquerydialog.cpp
  114. +3 −7 src/plugins/spit/qgsspit.cpp
  115. +2 −2 src/plugins/spit/qgsspit.h
  116. +3 −3 src/plugins/spit/qgsspitplugin.cpp
  117. +3 −3 src/plugins/sqlanywhere/sqlanywhere.cpp
  118. +3 −3 src/plugins/topology/topol.cpp
  119. +0 −2 src/plugins/zonal_statistics/qgszonalstatisticsplugin.cpp
  120. +0 −1 src/providers/delimitedtext/qgsdelimitedtextfile.cpp
  121. +2 −2 src/providers/gdal/qgsgdalprovider.cpp
  122. +1 −1 src/providers/grass/qgsgrassgislib.h
  123. +4 −4 src/providers/memory/qgsmemoryfeatureiterator.cpp
  124. +6 −6 src/providers/mssql/qgsmssqldataitems.cpp
  125. +0 −1 src/providers/mssql/qgsmssqlfeatureiterator.cpp
  126. +1 −0 src/providers/mssql/qgsmssqlsourceselect.cpp
  127. +0 −1 src/providers/ogr/qgsogrprovider.cpp
  128. +1 −0 src/providers/oracle/qgsoraclecolumntypethread.cpp
  129. +2 −3 src/providers/oracle/qgsoracleprovider.cpp
  130. +2 −2 src/providers/postgres/qgspostgresfeatureiterator.cpp
  131. +2 −2 src/providers/postgres/qgspostgresprovider.cpp
  132. +6 −8 src/providers/spatialite/qgsspatialiteprovider.cpp
  133. +1 −1 src/providers/sqlanywhere/qgssqlanywherefeatureiterator.cpp
  134. +28 −30 src/providers/sqlanywhere/qgssqlanywhereprovider.cpp
  135. +3 −4 src/providers/wcs/qgswcscapabilities.cpp
  136. +1 −1 src/providers/wcs/qgswcssourceselect.cpp
  137. +2 −2 src/providers/wfs/qgswfsprovider.cpp
  138. +1 −1 src/providers/wfs/qgswfsprovider.h
  139. +3 −4 src/providers/wms/qgswmsprovider.cpp
  140. +2 −2 src/providers/wms/qgswmssourceselect.cpp
@@ -166,7 +166,7 @@ class QgsMapLayer : QObject
virtual bool isEditable() const;

/** sets state from Dom document
@param layer_node is Dom node corresponding to ``maplayer'' tag
@param layerElement The Dom element corresponding to ``maplayer'' tag
@note

The Dom node corresponds to a Dom document project file XML element read
@@ -276,9 +276,9 @@ class QgsMapLayer : QObject
* @return a QString with any status messages
* @see also loadDefaultStyle ();
*/
virtual QString loadNamedStyle( const QString theURI, bool & theResultFlag /Out/ );
virtual QString loadNamedStyle( const QString &theURI, bool &theResultFlag /Out/ );

virtual bool loadNamedStyleFromDb( const QString db, const QString theURI, QString &qml /Out/ );
virtual bool loadNamedStyleFromDb( const QString &db, const QString &theURI, QString &qml /Out/ );

//TODO edit infos
/**
@@ -321,12 +321,12 @@ class QgsMapLayer : QObject
* @return a QString with any status messages
* @sa saveDefaultStyle()
*/
virtual QString saveNamedStyle( const QString theURI, bool & theResultFlag /Out/ );
virtual QString saveNamedStyle( const QString &theURI, bool &theResultFlag /Out/ );

virtual QString saveSldStyle( const QString theURI, bool & theResultFlag );
virtual QString loadSldStyle( const QString theURI, bool &theResultFlag );
virtual QString saveSldStyle( const QString &theURI, bool &theResultFlag );
virtual QString loadSldStyle( const QString &theURI, bool &theResultFlag );

virtual bool readSld( const QDomNode& node, QString& errorMessage );
virtual bool readSld( const QDomNode &node, QString &errorMessage );

/** Read the symbology for the current layer from the Dom node supplied.
* @param node node that will contain the symbology definition for this layer.
@@ -344,7 +344,7 @@ class QgsMapLayer : QObject
virtual bool writeSymbology( QDomNode &node, QDomDocument& doc, QString& errorMessage ) const = 0;

/** Return pointer to layer's undo stack */
QUndoStack* undoStack();
QUndoStack *undoStack();

/** Get the QImage used for caching render operations
* @note This method was added in QGIS 1.4 **/
@@ -15,6 +15,7 @@ class QgsAttributeEditorElement : QObject
{
AeTypeContainer,
AeTypeField,
AeTypeRelation,
AeTypeInvalid
};

@@ -41,6 +42,7 @@ class QgsAttributeEditorContainer : QgsAttributeEditorElement

virtual QDomElement toDomElement( QDomDocument& doc ) const;
virtual void addChildElement( QgsAttributeEditorElement *widget );
virtual bool isGroupBox() const;
QList<QgsAttributeEditorElement*> children() const;
};

@@ -105,19 +107,20 @@ class QgsVectorLayer : QgsMapLayer
Classification,
EditRange,
SliderRange,
CheckBox, /* added in 1.4 */
CheckBox, /**< @note added in 1.4 */
FileName,
Enumeration,
Immutable, /* The attribute value should not be changed in the attribute form */
Hidden, /* The attribute value should not be shown in the attribute form @added in 1.4 */
TextEdit, /* multiline edit @added in 1.4*/
Calendar, /* calendar widget @added in 1.5 */
DialRange, /* dial range @added in 1.5 */
ValueRelation, /* value map from an table @added in 1.8 */
UuidGenerator, /* uuid generator - readonly and automatically intialized @added in 1.9 */
Photo, /* phote widget @added in 1.9 */
WebView, /* webview widget @added in 1.9 */
Color, /* color @added in 1.9 */
Immutable, /**< The attribute value should not be changed in the attribute form */
Hidden, /**< The attribute value should not be shown in the attribute form @note added in 1.4 */
TextEdit, /**< multiline edit @note added in 1.4*/
Calendar, /**< calendar widget @note added in 1.5 */
DialRange, /**< dial range @note added in 1.5 */
ValueRelation, /**< value map from an table @note added in 1.8 */
UuidGenerator, /**< uuid generator - readonly and automatically intialized @note added in 1.9 */
Photo, /**< phote widget @note added in 1.9 */
WebView, /**< webview widget @note added in 1.9 */
Color, /**< color @note added in 1.9 */
EditorWidgetV2, /**< modularized edit widgets @note added in 2.1 */
};

/** Types of feature form suppression after feature creation
@@ -418,13 +421,13 @@ class QgsVectorLayer : QgsMapLayer
* @param theResultFlag will be set to true if a named style is correctly loaded
* @param loadFromLocalDb if true forces to load from local db instead of datasource one
*/
virtual QString loadNamedStyle( const QString theURI, bool &theResultFlag, bool loadFromLocalDb );
virtual QString loadNamedStyle( const QString &theURI, bool &theResultFlag, bool loadFromLocalDb );

/**
* Calls loadNamedStyle( theURI, theResultFlag, false );
* Retained for backward compatibility
*/
virtual QString loadNamedStyle( const QString theURI, bool &theResultFlag );
virtual QString loadNamedStyle( const QString &theURI, bool &theResultFlag );

virtual bool applyNamedStyle( QString namedStyle , QString errorMsg );

@@ -503,10 +506,12 @@ class QgsVectorLayer : QgsMapLayer
*/
bool addFeature( QgsFeature& f, bool alsoUpdateExtent = true );

/** Updates an existing feature
@param f feature to update
@return True in case of success and False in case of error
@note added in 1.8
/** Updates an existing feature. This method needs to query the datasource
on every call. Consider using {@link changeAttributeValue()} or
{@link changeGeometry()} instead.
@param f Feature to update
@return True in case of success and False in case of error
@note Added in 1.8
*/
bool updateFeature( QgsFeature &f );

@@ -561,6 +566,15 @@ class QgsVectorLayer : QgsMapLayer
@return 0 in case of success*/
int translateFeature( QgsFeatureId featureId, double dx, double dy );

/**Splits parts cut by the given line
* @param splitLine line that splits the layer features
* @param topologicalEditing true if topological editing is enabled
* @return
* 0 in case of success,
* 4 if there is a selection but no feature split
*/
int splitParts( const QList<QgsPoint>& splitLine, bool topologicalEditing = false );

/**Splits features cut by the given line
* @param splitLine line that splits the layer features
* @param topologicalEditing true if topological editing is enabled
@@ -688,26 +702,57 @@ class QgsVectorLayer : QgsMapLayer
@note added in version 1.2 */
bool addAttribute( const QgsField &field );

/**Sets an alias (a display name) for attributes to display in dialogs
@note added in version 1.2*/
/**
* Sets an alias (a display name) for attributes to display in dialogs
* @note added in version 1.2
*/
void addAttributeAlias( int attIndex, QString aliasString );

/**Adds a tab (for the attribute editor form) holding groups and fields
@note added in version 1.9*/
/**
* Adds a tab (for the attribute editor form) holding groups and fields
* @note added in version 2.0
*/
void addAttributeEditorWidget( QgsAttributeEditorElement* data );
/**Returns a list of tabs holding groups and fields
@note added in version 1.9*/

/**
* Get the id for the editor widget used to represent the field at the given index
*
* @param fieldIdx The index of the field
*
* @return The id for the editor widget or a NULL string if not applicable
*/
const QString editorWidgetV2( int fieldIdx );

/**
* Get the configuration for the editor widget used to represent the field at the given index
*
* @param fieldIdx The index of the field
*
* @return The id for the editor widget or a NULL string if not configured
*/
const QgsEditorWidgetConfig editorWidgetV2Config( int fieldIdx );

/**
* Returns a list of tabs holding groups and fields
* @note added in version 2.0
*/
QList< QgsAttributeEditorElement* > &attributeEditorElements();
/**Clears all the tabs for the attribute editor form
@note added in version 1.9*/
/**
* Clears all the tabs for the attribute editor form
* @note added in version 2.0
*/
void clearAttributeEditorWidgets();

/**Returns the alias of an attribute name or an empty string if there is no alias
@note added in version 1.2*/
/**
* Returns the alias of an attribute name or an empty string if there is no alias
* @note added in version 1.2
*/
QString attributeAlias( int attributeIndex ) const;

/**Convenience function that returns the attribute alias if defined or the field name else
@note added in version 1.2*/
/**
* Convenience function that returns the attribute alias if defined or the field name else
* @note added in version 1.2
*/
QString attributeDisplayName( int attributeIndex ) const;

const QMap< QString, QString >& attributeAliases() const;
@@ -771,6 +816,10 @@ class QgsVectorLayer : QgsMapLayer
/** set the active layout for the attribute editor for this layer (added in 1.9) */
void setEditorLayout( EditorLayout editorLayout );

void setEditorWidgetV2( int attrIdx, const QString& widgetType );

void setEditorWidgetV2Config( int attrIdx, const QMap<QString, QVariant>& config );

/** set string representing 'true' for a checkbox (added in 1.4) */
void setCheckedState( int idx, QString checked, QString notChecked );

@@ -817,6 +866,14 @@ class QgsVectorLayer : QgsMapLayer
**/
ValueRelationData &valueRelation( int idx );

/**
* Get relations, where the foreign key is on this layer
*
* @param idx Only get relations, where idx forms part of the foreign key
* @return A list of relations
*/
QList<QgsRelation> referencingRelations( int idx );

/**access date format
* @note added in 1.9
*/
@@ -906,7 +963,7 @@ class QgsVectorLayer : QgsMapLayer
/* Set the blending mode used for rendering each feature
* @note added in 2.0
*/
void setFeatureBlendMode( const QPainter::CompositionMode blendMode );
void setFeatureBlendMode( const QPainter::CompositionMode &blendMode );
/* Returns the current blending mode for features
* @note added in 2.0
*/
@@ -920,7 +977,12 @@ class QgsVectorLayer : QgsMapLayer
* @note added in 2.0
*/
int layerTransparency() const;


QString metadata();

/** @note not available in python bindings */
// inline QgsGeometryCache* cache();

/** Set the Map2pixel simplification threshold for fast rendering of features */
void setSimplifyDrawingTol( float simplifyDrawingTol );
/** Returns the Map2pixel simplification threshold for fast rendering of features */
@@ -942,7 +1004,7 @@ class QgsVectorLayer : QgsMapLayer
int simplifyDrawingHints() const;

/** Returns whether the VectorLayer can apply the specified simplification hint */
bool simplifyDrawingCanbeApplied( int simplifyHint ) const;
bool simplifyDrawingCanbeApplied( int simplifyHint ) const;

public slots:
/**
@@ -999,11 +1061,6 @@ class QgsVectorLayer : QgsMapLayer
@note added in 1.7 */
void checkJoinLayerRemove( QString theLayerId );

QString metadata();

/** @note not available in python bindings */
// QgsGeometryCache* cache();

/**
* @brief Is called when the cache image is being deleted. Overwrite and use to clean up.
* @note added in 2.0
@@ -1080,6 +1137,8 @@ class QgsVectorLayer : QgsMapLayer
void committedAttributeValuesChanges( const QString& layerId, const QgsChangedAttributesMap& changedAttributesValues );
void committedGeometriesChanges( const QString& layerId, const QgsGeometryMap& changedGeometries );

void saveLayerToProject();

/** Emitted when the font family defined for labeling layer is not found on system
* @note added in 1.9
*/
@@ -1089,7 +1148,7 @@ class QgsVectorLayer : QgsMapLayer
void rendererChanged();

/** Signal emitted when setFeatureBlendMode() is called */
void featureBlendModeChanged( const QPainter::CompositionMode blendMode );
void featureBlendModeChanged( const QPainter::CompositionMode &blendMode );

/** Signal emitted when setLayerTransparency() is called */
void layerTransparencyChanged( int layerTransparency );
@@ -92,14 +92,14 @@ class QgsGradientFillSymbolLayerV2 : QgsFillSymbolLayerV2
Reflect,
Repeat
};

QgsGradientFillSymbolLayerV2( QColor color = DEFAULT_SIMPLEFILL_COLOR,
QColor color2 = Qt::white,
GradientColorType gradientColorType = SimpleTwoColor,
GradientType gradientType = Linear,
GradientCoordinateMode coordinateMode = Feature,
GradientSpread gradientSpread = Pad );
GradientSpread gradientSpread = Pad
);
// static stuff

static QgsSymbolLayerV2* create( const QgsStringMap& properties = QgsStringMap() ) /Factory/;
@@ -118,45 +118,58 @@ class QgsGradientFillSymbolLayerV2 : QgsFillSymbolLayerV2

QgsSymbolLayerV2* clone() const /Factory/;

/**Type of gradient, eg linear or radial*/
GradientType gradientType() const;
void setGradientType( GradientType gradientType );

/**Gradient color mode, controls how gradient color stops are created*/
GradientColorType gradientColorType() const;
void setGradientColorType( GradientColorType gradientColorType );

/**Color ramp used for the gradient fill, only used if the gradient color type is set to ColorRamp*/
QgsVectorColorRampV2* colorRamp();
void setColorRamp( QgsVectorColorRampV2* ramp );

/**Color for endpoint of gradient, only used if the gradient color type is set to SimpleTwoColor*/
QColor color2() const;
void setColor2( QColor color2 );

/**Coordinate mode for gradient. Controls how the gradient stops are positioned.*/
GradientCoordinateMode coordinateMode() const;
void setCoordinateMode( GradientCoordinateMode coordinateMode );

/**Gradient spread mode. Controls how the gradient behaves outside of the predefined stops*/
GradientSpread gradientSpread() const;
void setGradientSpread( GradientSpread gradientSpread );

/**Starting point of gradient fill, in the range [0,0] - [1,1]*/
void setReferencePoint1( QPointF referencePoint );
QPointF referencePoint1() const;


/**Sets the starting point of the gradient to be the feature centroid*/
void setReferencePoint1IsCentroid( bool isCentroid );
bool referencePoint1IsCentroid() const;

/**End point of gradient fill, in the range [0,0] - [1,1]*/
void setReferencePoint2( QPointF referencePoint );
QPointF referencePoint2() const;


/**Sets the end point of the gradient to be the feature centroid*/
void setReferencePoint2IsCentroid( bool isCentroid );
bool referencePoint2IsCentroid() const;
bool referencePoint2IsCentroid() const;

/**Rotation angle for gradient fill. Can be used to rotate a gradient around its centre point*/
void setAngle( double angle );
double angle() const;

/**Offset for gradient fill*/
void setOffset( QPointF offset );
QPointF offset() const;

/**Units for gradient fill offset*/
void setOffsetUnit( QgsSymbolV2::OutputUnit unit );
QgsSymbolV2::OutputUnit offsetUnit() const;

};

/**Base class for polygon renderers generating texture images*/
@@ -458,7 +458,6 @@ int DualEdgeTriangulation::baseEdgeOfPoint( int point )
{
mEdgeInside = actedge;
return actedge;
break;
}

else if ( leftofnumber <= 0 )

0 comments on commit 190c051

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