Skip to content

Commit 76700cd

Browse files
committed
Add more debug information on vertex tool assertion
kicks in when zooming in a lot with snapping activated
1 parent f3261e1 commit 76700cd

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/vertextool/qgsvertextool.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1929,7 +1929,7 @@ bool QgsVertexTool::matchEdgeCenterTest( const QgsPointLocator::Match &m, const
19291929
QgsGeometry lineGeom = QgsGeometry::fromPolylineXY( QgsPolylineXY() << p0 << p1 );
19301930
lineGeom = extentGeom.intersection( lineGeom );
19311931
QgsPolylineXY polyline = lineGeom.asPolyline();
1932-
Q_ASSERT( polyline.count() == 2 );
1932+
Q_ASSERT_X( polyline.count() == 2, "QgsVertexTool::matchEdgeCenterTest", QgsLineString( polyline ).asWkt().toUtf8().constData() );
19331933
p0 = polyline[0];
19341934
p1 = polyline[1];
19351935
}

0 commit comments

Comments
 (0)