Skip to content

Commit

Permalink
Fix loss of dimensionality when cloning compound curves
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Sep 21, 2017
1 parent 148a906 commit a7d0d5e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/geometry/qgscompoundcurve.cpp
Expand Up @@ -73,7 +73,7 @@ int QgsCompoundCurve::dimension() const

QgsCompoundCurve::QgsCompoundCurve( const QgsCompoundCurve &curve ): QgsCurve( curve )
{
mWkbType = QgsWkbTypes::CompoundCurve;
mWkbType = curve.wkbType();
for ( const QgsCurve *c : curve.mCurves )
{
mCurves.append( static_cast<QgsCurve *>( c->clone() ) );
Expand Down

0 comments on commit a7d0d5e

Please sign in to comment.