We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
qgis
Learn more about funding links in repositories.
Report abuse
There was an error while loading. Please reload this page.
1 parent 1540448 commit e6a0af5Copy full SHA for e6a0af5
src/core/geometry/qgscompoundcurve.cpp
@@ -41,7 +41,19 @@ bool QgsCompoundCurve::operator==( const QgsCurve &other ) const
41
if ( !otherCurve )
42
return false;
43
44
- return *otherCurve == *this;
+ if ( mWkbType != otherCurve->mWkbType )
45
+ return false;
46
+
47
+ if ( mCurves.size() != otherCurve->mCurves.size() )
48
49
50
+ for ( int i = 0; i < mCurves.size(); ++i )
51
+ {
52
+ if ( *mCurves.at( i ) != *otherCurve->mCurves.at( i ) )
53
54
+ }
55
56
+ return true;
57
}
58
59
bool QgsCompoundCurve::operator!=( const QgsCurve &other ) const
0 commit comments