Skip to content
Permalink
Browse files

Apply suggestions from code review

  • Loading branch information
nyalldawson committed Feb 12, 2021
1 parent e336b83 commit 93239b150e97eafeee75a8665893c2f4722a4902
@@ -1322,7 +1322,7 @@ void QgsGpsInformationWidget::mBtnCloseFeature_clicked()
}
else if ( avoidIntersectionsReturn == 3 )
{
QgisApp::instance()->messageBar()->pushCritical( tr( "Add Feature" ), tr( "The feature has been added, but at least one geometry intersected is invalid. You should fix geometries." ) );
QgisApp::instance()->messageBar()->pushCritical( tr( "Add Feature" ), tr( "The feature has been added, but at least one geometry intersected is invalid. These geometries must be manually repaired." ) );
connectGpsSlot();
return;
}
@@ -196,7 +196,7 @@ void QgsMapToolReshape::reshape( QgsVectorLayer *vlayer )
}
if ( res == 3 )
{
emit messageEmitted( tr( "At least one geometry intersected is invalid. You should fix geometries." ), Qgis::Warning );
emit messageEmitted( tr( "At least one geometry intersected is invalid. These geometries must be manually repaired." ), Qgis::Warning );
}
}

@@ -343,7 +343,7 @@ void QgsMapToolDigitizeFeature::cadCanvasReleaseEvent( QgsMapMouseEvent *e )
f->setGeometry( featGeom );
if ( avoidIntersectionsReturn == 3 )
{
emit messageEmitted( tr( "The feature has been added, but at least one geometry intersected is invalid. You should fix geometries." ), Qgis::Warning );
emit messageEmitted( tr( "The feature has been added, but at least one geometry intersected is invalid. These geometries must be manually repaired." ), Qgis::Warning );
}
if ( f->geometry().isEmpty() ) //avoid intersection might have removed the whole geometry
{

0 comments on commit 93239b1

Please sign in to comment.