mirror of
https://github.com/qgis/QGIS.git
synced 2025-04-14 00:07:35 -04:00
Fix incorrect result for reversing compound curves
This commit is contained in:
parent
9d6d60727a
commit
395ed9307b
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user