Skip to content

Commit b80bbc4

Browse files
rouaultnyalldawson
authored andcommittedApr 1, 2023
fillRingUnderPoint(): update test to detect if FID is set
1 parent c394ad3 commit b80bbc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎src/app/qgsmaptoolfillring.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -213,7 +213,7 @@ void QgsMapToolFillRing::fillRingUnderPoint( const QgsPointXY &p )
213213
}
214214
}
215215

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

0 commit comments

Comments
 (0)
Please sign in to comment.