Skip to content

Commit

Permalink
Nicer strings
Browse files Browse the repository at this point in the history
  • Loading branch information
nyalldawson committed Nov 7, 2022
1 parent 57baa86 commit 39817d2
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/app/gps/qgsappgpsdigitizing.cpp
Expand Up @@ -145,13 +145,13 @@ void QgsAppGpsDigitizing::addFeature()

if ( vlayer->geometryType() == QgsWkbTypes::LineGeometry && mCaptureListWgs84.size() < 2 )
{
QgisApp::instance()->messageBar()->pushWarning( tr( "Add Feature" ), tr( "Cannot close a line feature until it has at least two vertices." ) );
QgisApp::instance()->messageBar()->pushWarning( tr( "Add Feature" ), tr( "Creating a line feature requires a track with at least two vertices." ) );
return;
}
else if ( vlayer->geometryType() == QgsWkbTypes::PolygonGeometry && mCaptureListWgs84.size() < 3 )
{
QgisApp::instance()->messageBar()->pushWarning( tr( "Add Feature" ),
tr( "Cannot close a polygon feature until it has at least three vertices." ) );
tr( "Creating a polygon feature requires a track with at least three vertices." ) );
return;
}

Expand Down

0 comments on commit 39817d2

Please sign in to comment.