Skip to content

Commit

Permalink
Fix incorrect result for reversing compound curves
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 22, 2017
1 parent 9d6d607 commit 395ed93
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/core/geometry/qgscompoundcurve.cpp
Expand Up @@ -783,9 +783,9 @@ double QgsCompoundCurve::vertexAngle( QgsVertexId vertex ) const
QgsCompoundCurve *QgsCompoundCurve::reversed() const
{
QgsCompoundCurve *clone = new QgsCompoundCurve();
for ( QgsCurve *curve : mCurves )
for ( int i = mCurves.count() - 1; i >= 0; --i )
{
QgsCurve *reversedCurve = curve->reversed();
QgsCurve *reversedCurve = mCurves.at( i )->reversed();
clone->addCurve( reversedCurve );
}
return clone;
Expand Down

0 comments on commit 395ed93

Please sign in to comment.