Skip to content

Commit

Permalink
Added missing OperationResult, removed unused ones
Browse files Browse the repository at this point in the history
  • Loading branch information
uclaros authored and nyalldawson committed Mar 31, 2021
1 parent 404d2ff commit a898f9a
Showing 1 changed file with 5 additions and 9 deletions.
14 changes: 5 additions & 9 deletions src/app/qgsmaptooladdpart.cpp
Expand Up @@ -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;
Expand All @@ -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:
Expand Down

0 comments on commit a898f9a

Please sign in to comment.