Skip to content
Permalink
Browse files

Avoid trying to load unnecessary styling for temporary snap layer

  • Loading branch information
nyalldawson committed Oct 27, 2020
1 parent fa1ce4d commit 9fabf4be86bd5af118d057ea875c101a14bdf72b
Showing with 1 addition and 0 deletions.
  1. +1 −0 src/gui/qgsmaptoolcapture.cpp
@@ -56,6 +56,7 @@ QgsMapToolCapture::QgsMapToolCapture( QgsMapCanvas *canvas, QgsAdvancedDigitizin

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

0 comments on commit 9fabf4b

Please sign in to comment.
You can’t perform that action at this time.