Skip to content

Commit

Permalink
Fix typo, failing test
Browse files Browse the repository at this point in the history
(cherry-picked from 20e62b4)
  • Loading branch information
nyalldawson committed Jul 28, 2018
1 parent 13341c0 commit d9b9fd8
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion python/core/auto_generated/geometry/qgsmulticurve.sip.in
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ Returns a copy of the multi curve, where each component curve has had its line d

SIP_PYOBJECT __repr__();
%MethodCode
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() );
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() );
sipRes = PyUnicode_FromString( str.toUtf8().data() );
%End

Expand Down
2 changes: 1 addition & 1 deletion src/core/geometry/qgsmulticurve.h
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ class CORE_EXPORT QgsMultiCurve: public QgsGeometryCollection
#ifdef SIP_RUN
SIP_PYOBJECT __repr__();
% MethodCode
QString str = QStringLiteral( "<QgsMulitCurve: %1>" ).arg( sipCpp->asWkt() );
QString str = QStringLiteral( "<QgsMultiCurve: %1>" ).arg( sipCpp->asWkt() );
sipRes = PyUnicode_FromString( str.toUtf8().data() );
% End
#endif
Expand Down
2 changes: 1 addition & 1 deletion tests/src/python/test_python_repr.py
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@ def testQgsMulticurveRepr(self):
mc.addGeometry(cs)
cs2 = QgsCircularString(QgsPoint(4, 20), QgsPoint(5, 22), QgsPoint(6, 24))
mc.addGeometry(cs2)
self.assertEqual(mc.__repr__(), '<QgsMulitCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>')
self.assertEqual(mc.__repr__(), '<QgsMultiCurve: MultiCurve (CircularString (1 10, 2 11, 3 12),CircularString (4 20, 5 22, 6 24))>')

def testQgsMultilineStringRepr(self):
ml = QgsGeometry.fromMultiPolylineXY(
Expand Down

0 comments on commit d9b9fd8

Please sign in to comment.