Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
fillRingUnderPoint(): update test to detect if FID is set
  • Loading branch information
rouault authored and nyalldawson committed Apr 1, 2023
1 parent c394ad3 commit b80bbc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/qgsmaptoolfillring.cpp
Expand Up @@ -213,7 +213,7 @@ void QgsMapToolFillRing::fillRingUnderPoint( const QgsPointXY &p )
}
}

if ( fid == -1 )
if ( FID_IS_NULL( fid ) )
{
emit messageEmitted( tr( "No ring found to fill." ), Qgis::MessageLevel::Critical );
vlayer->destroyEditCommand();
Expand Down

0 comments on commit b80bbc4

Please sign in to comment.