Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 7b4aa86

Browse files
rouaultgithub-actions[bot]
authored andcommittedMar 9, 2023
fillRingUnderPoint(): update test to detect if FID is set
1 parent deab832 commit 7b4aa86

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.