Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Avoid startup warnings caused by trying to create a CRS from a '0' st…
…ring
  • Loading branch information
nyalldawson committed Jun 10, 2020
1 parent 0dc513c commit 013f682
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/gui/qgsmaptoolcapture.cpp
Expand Up @@ -53,7 +53,7 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizin

QgsVectorLayer::LayerOptions layerOptions;
layerOptions.skipCrsValidation = true;
mExtraSnapLayer = new QgsVectorLayer( QStringLiteral( "LineString?crs=0" ), QStringLiteral( "extra snap" ), QStringLiteral( "memory" ), layerOptions );
mExtraSnapLayer = new QgsVectorLayer( QStringLiteral( "LineString?crs=" ), QStringLiteral( "extra snap" ), QStringLiteral( "memory" ), layerOptions );
mExtraSnapLayer->startEditing();
QgsFeature f;
mExtraSnapLayer->addFeature( f );
Expand Down

0 comments on commit 013f682

Please sign in to comment.