Skip to content
Permalink
Browse files

Fix incorrect result for reversing compound curves

  • Loading branch information
nyalldawson committed Sep 22, 2017
1 parent 9d6d607 commit 395ed9307bf054b9ed3271df306bfd20cbeb0888
Showing with 2 additions and 2 deletions.
  1. +2 −2 src/core/geometry/qgscompoundcurve.cpp
@@ -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;

0 comments on commit 395ed93

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