Skip to content
Permalink
Browse files

Fix loss of dimensionality when cloning compound curves

  • Loading branch information
nyalldawson committed Sep 21, 2017
1 parent 148a906 commit a7d0d5ef2d33618cc6a77db1ef3bbf05d0f25f57
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/core/geometry/qgscompoundcurve.cpp
@@ -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() ) );

0 comments on commit a7d0d5e

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