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 5929187

Browse files
rouaultgithub-actions[bot]
authored andcommittedMar 9, 2023
QgsMapToolFillRing::fillRingUnderPoint(): fix -Wmaybe-uninitialized warning
1 parent 56d1e71 commit 5929187

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
@@ -161,7 +161,7 @@ void QgsMapToolFillRing::createFeature( const QgsGeometry &geometry, QgsFeatureI
161161
// TODO refactor - shamelessly copied from QgsMapToolDeleteRing::ringUnderPoint
162162
void QgsMapToolFillRing::fillRingUnderPoint( const QgsPointXY &p )
163163
{
164-
QgsFeatureId fid;
164+
QgsFeatureId fid = -1;
165165

166166
QgsVectorLayer *vlayer = getCheckLayer();
167167
if ( !vlayer )

0 commit comments

Comments
 (0)
Please sign in to comment.