Skip to content
Permalink
Browse files

Add more debug information on vertex tool assertion

kicks in when zooming in a lot with snapping activated
  • Loading branch information
m-kuhn committed Oct 1, 2018
1 parent f3261e1 commit 76700cda71e9d960e75680723bb0937559ae30d7
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/vertextool/qgsvertextool.cpp
@@ -1929,7 +1929,7 @@ bool QgsVertexTool::matchEdgeCenterTest( const QgsPointLocator::Match &m, const
QgsGeometry lineGeom = QgsGeometry::fromPolylineXY( QgsPolylineXY() << p0 << p1 );
lineGeom = extentGeom.intersection( lineGeom );
QgsPolylineXY polyline = lineGeom.asPolyline();
Q_ASSERT( polyline.count() == 2 );
Q_ASSERT_X( polyline.count() == 2, "QgsVertexTool::matchEdgeCenterTest", QgsLineString( polyline ).asWkt().toUtf8().constData() );
p0 = polyline[0];
p1 = polyline[1];
}

0 comments on commit 76700cd

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