Skip to content
Permalink
Browse files

Added missing OperationResult, removed unused ones

  • Loading branch information
uclaros authored and nyalldawson committed Mar 31, 2021
1 parent 404d2ff commit a898f9a398d038a91cab15327ed9cc8b25ac7880
Showing with 5 additions and 9 deletions.
  1. +5 −9 src/app/qgsmaptooladdpart.cpp
@@ -239,14 +239,6 @@ void QgsMapToolAddPart::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
errorMessage = tr( "Selected feature is not multi part." );
break;

case QgsGeometry::OperationResult::AddRingNotValid:
errorMessage = tr( "New part's geometry is not valid." );
break;

case QgsGeometry::OperationResult::AddRingCrossesExistingRings:
errorMessage = tr( "New polygon ring not disjoint with existing polygons." );
break;

case QgsGeometry::OperationResult::SelectionIsEmpty:
errorMessage = tr( "No feature selected. Please select a feature with the selection tool or in the attribute table." );
break;
@@ -256,7 +248,11 @@ void QgsMapToolAddPart::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
break;

case QgsGeometry::OperationResult::AddPartSelectedGeometryNotFound:
errorMessage = tr( "Selected geometry could not be found" );
errorMessage = tr( "Selected geometry could not be found." );
break;

case QgsGeometry::OperationResult::InvalidBaseGeometry:
errorMessage = tr( "Base geometry is not valid." );
break;

default:

0 comments on commit a898f9a

Please sign in to comment.