File tree Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Expand file tree Collapse file tree 1 file changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -38,7 +38,26 @@ bool QgsCircularString::operator==( const QgsCurve &other ) const
38
38
if ( !otherLine )
39
39
return false ;
40
40
41
- return *otherLine == *this ;
41
+ if ( mWkbType != otherLine->mWkbType )
42
+ return false ;
43
+
44
+ if ( mX .count () != otherLine->mX .count () )
45
+ return false ;
46
+
47
+ for ( int i = 0 ; i < mX .count (); ++i )
48
+ {
49
+ if ( !qgsDoubleNear ( mX .at ( i ), otherLine->mX .at ( i ) )
50
+ || !qgsDoubleNear ( mY .at ( i ), otherLine->mY .at ( i ) ) )
51
+ return false ;
52
+
53
+ if ( is3D () && !qgsDoubleNear ( mZ .at ( i ), otherLine->mZ .at ( i ) ) )
54
+ return false ;
55
+
56
+ if ( isMeasure () && !qgsDoubleNear ( mM .at ( i ), otherLine->mM .at ( i ) ) )
57
+ return false ;
58
+ }
59
+
60
+ return true ;
42
61
}
43
62
44
63
bool QgsCircularString::operator !=( const QgsCurve &other ) const
You can’t perform that action at this time.
0 commit comments