Skip to content
Permalink
Browse files
Simplify inequality
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
2 people authored and nyalldawson committed Apr 17, 2021
1 parent ec7b288 commit f8a1191399d08b275c04a89a0bc6986d3bcf3b83
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/app/vertextool/qgsvertextool.cpp
@@ -2644,7 +2644,7 @@ bool QgsVertexTool::matchEdgeCenterTest( const QgsPointLocator::Match &m, const
QgsRectangle visible_extent = canvas()->mapSettings().visibleExtent();
// Check if one point is inside and the other outside the visible extent in order to transpose the mid marker
// If both are inside or outside there is no such need
if ( !visible_extent.contains( p0 ) != !visible_extent.contains( p1 ) )
if ( visible_extent.contains( p0 ) != visible_extent.contains( p1 ) )
{
// clip line segment to the extent so the mid-point marker is always visible
QgsGeometry extentGeom = QgsGeometry::fromRect( visible_extent );

0 comments on commit f8a1191

Please sign in to comment.