Skip to content

Commit

Permalink
Add more debug information on vertex tool assertion
Browse files Browse the repository at this point in the history
kicks in when zooming in a lot with snapping activated
  • Loading branch information
m-kuhn committed Oct 15, 2018
1 parent f3261e1 commit 76700cd
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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];
}
Expand Down

0 comments on commit 76700cd

Please sign in to comment.