Navigation Menu

Skip to content

Commit

Permalink
Simplify inequality
Browse files Browse the repository at this point in the history
Co-authored-by: Matthias Kuhn <matthias@opengis.ch>
  • Loading branch information
2 people authored and nyalldawson committed Apr 17, 2021
1 parent ec7b288 commit f8a1191
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/vertextool/qgsvertextool.cpp
Expand Up @@ -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 );
Expand Down

0 comments on commit f8a1191

Please sign in to comment.