Skip to content

Commit

Permalink
Fix #2320 Split geometry visual problems (#3553)
Browse files Browse the repository at this point in the history
* Fix visual probem in the spliting tool
The buildGuideline method was cancelled

* Change default property value

* Overrite the default color of MMHighlight to match splitting tool's color
  • Loading branch information
ValentinBuira authored Aug 9, 2024
1 parent ce2e752 commit 795bf57
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/guidelinecontroller.h
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
5 changes: 4 additions & 1 deletion app/qml/map/MMSplittingTools.qml
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,10 @@ Item {
height: root.map.height
width: root.map.width

markerColor: __style.deepOceanColor
lineColor: __style.deepOceanColor
lineStrokeStyle: ShapePath.DashLine
lineWidth: MMHighlight.LineWidths.Narrow

mapSettings: root.map.mapSettings
geometry: guidelineController.guidelineGeometry
Expand All @@ -64,7 +67,7 @@ Item {

markerColor: __style.deepOceanColor
lineColor: __style.deepOceanColor
lineStrokeStyle: ShapePath.DashLine
lineWidth: MMHighlight.LineWidths.Narrow

mapSettings: root.map.mapSettings
geometry: __inputUtils.transformGeometryToMapWithLayer( mapTool.recordedGeometry, __activeLayer.vectorLayer, root.map.mapSettings )
Expand Down

0 comments on commit 795bf57

Please sign in to comment.