Skip to content

Commit

Permalink
enum has been renamed
Browse files Browse the repository at this point in the history
  • Loading branch information
troopa81 committed Sep 25, 2023
1 parent 8ad56d7 commit 93b40a3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/maptools/qgsavoidintersectionsoperation.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -46,8 +46,7 @@ Qgis::GeometryOperationResult QgsAvoidIntersectionsOperation::apply( QgsVectorLa
bool geomHasChanged = false;
switch ( avoidIntersectionsReturn )
{
geomHasChanged = true;
case Qgis::GeometryOperationResult::OperationChangedGeometryType: // Geometry type was changed, let's try our best to make it compatible with the target layer
case Qgis::GeometryOperationResult::GeometryTypeHasChanged: // Geometry type was changed, let's try our best to make it compatible with the target layer
{
geomHasChanged = true;
const QVector<QgsGeometry> newGeoms = geom.coerceToType( layer->wkbType() );
Expand Down Expand Up @@ -97,6 +96,7 @@ Qgis::GeometryOperationResult QgsAvoidIntersectionsOperation::apply( QgsVectorLa
}

case Qgis::GeometryOperationResult::InvalidBaseGeometry:
geomHasChanged = true;
emit messageEmitted( tr( "At least one geometry intersected is invalid. These geometries must be manually repaired." ), Qgis::MessageLevel::Warning );
break;

Expand Down

0 comments on commit 93b40a3

Please sign in to comment.