Navigation Menu

Skip to content

Commit

Permalink
QgsSnappingUtils::snapToMap(): add missing initialization of member v…
Browse files Browse the repository at this point in the history
…ariable
  • Loading branch information
rouault committed Jun 1, 2020
1 parent c3ec56b commit 9ed3f0c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssnappingutils.cpp
Expand Up @@ -335,7 +335,7 @@ QgsPointLocator::Match QgsSnappingUtils::snapToMap( const QgsPointXY &pointMap,
QgsPointLocator::Match bestMatch;
QgsPointLocator::MatchList edges; // for snap on intersection
double maxTolerance = 0;
QgsPointLocator::Type maxTypes;
QgsPointLocator::Type maxTypes = QgsPointLocator::Invalid;

for ( const LayerConfig &layerConfig : qgis::as_const( filteredConfigs ) )
{
Expand Down

0 comments on commit 9ed3f0c

Please sign in to comment.