Skip to content

Commit

Permalink
[snapping] Fix broken version detection which leads to broken reading…
Browse files Browse the repository at this point in the history
… of snapping type flags (#35643)
  • Loading branch information
nirvn committed Apr 7, 2020
1 parent 01471d7 commit 08a17ce
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/core/qgssnappingconfig.cpp
Expand Up @@ -407,7 +407,7 @@ void QgsSnappingConfig::readProject( const QDomDocument &doc )
if ( versionElem.hasAttribute( QStringLiteral( "version" ) ) )
{
version = versionElem.attribute( QStringLiteral( "version" ) );
QRegularExpression re( "(\\d).(\\d)" );
QRegularExpression re( "([\\d]+)\\.([\\d]+)" );
QRegularExpressionMatch match = re.match( version );
if ( match.hasMatch() )
{
Expand Down

0 comments on commit 08a17ce

Please sign in to comment.