Skip to content
Permalink
Browse files
It's a good habit to use initialize a variable before adding to it
git-svn-id: http://svn.osgeo.org/qgis/trunk@14872 c8812cc2-4d05-0410-92ff-de0c093fc19c
  • Loading branch information
wonder committed Dec 8, 2010
1 parent e0960e4 commit fd83d1aebc324a0b1198126b798ec430628ff2cc
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/symbology-ng/qgslinesymbollayerv2.cpp
@@ -489,7 +489,7 @@ void QgsMarkerLineSymbolLayerV2::renderPolylineCentral( const QPolygonF& points,
// find the segment where the central point lies
it = points.constBegin();
last = *it;
qreal last_at = 0, next_at;
qreal last_at = 0, next_at = 0;
QPointF next;
int segment = 0;
for ( ++it; it != points.constEnd(); ++it )

0 comments on commit fd83d1a

Please sign in to comment.