From 7081bca56df48f3e04c31fcf95c7c12ca8bc002a Mon Sep 17 00:00:00 2001 From: Valentin Buira Date: Wed, 31 Jul 2024 15:02:54 +0200 Subject: [PATCH] Change default property value --- app/guidelinecontroller.h | 2 +- app/qml/map/MMSplittingTools.qml | 3 +-- 2 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/guidelinecontroller.h b/app/guidelinecontroller.h index 59b9eb38c..bc1d1a67b 100644 --- a/app/guidelinecontroller.h +++ b/app/guidelinecontroller.h @@ -100,7 +100,7 @@ class GuidelineController : public QObject QgsGeometry mRealGeometry; InputMapSettings *mMapSettings = nullptr; // not owned Vertex mActiveVertex; - bool mAllowed; + bool mAllowed = true; RecordingMapTool::InsertPolicy mInsertPolicy; int mActivePart = 0; int mActiveRing = 0; diff --git a/app/qml/map/MMSplittingTools.qml b/app/qml/map/MMSplittingTools.qml index 197cb32e7..0550749bd 100644 --- a/app/qml/map/MMSplittingTools.qml +++ b/app/qml/map/MMSplittingTools.qml @@ -39,8 +39,6 @@ Item { MM.GuidelineController { id: guidelineController - allowed: true - mapSettings: root.map.mapSettings crosshairPosition: crosshair.screenPoint realGeometry: __inputUtils.transformGeometryToMapWithLayer( mapTool.recordedGeometry, __activeLayer.vectorLayer, root.map.mapSettings ) @@ -68,6 +66,7 @@ Item { width: map.width lineColor: __style.deepOceanColor + lineWidth: MMHighlight.LineWidths.Narrow mapSettings: root.map.mapSettings geometry: __inputUtils.transformGeometryToMapWithLayer( mapTool.recordedGeometry, __activeLayer.vectorLayer, root.map.mapSettings )