From f8ed036794941797eea4c18c2062e3d649597c44 Mon Sep 17 00:00:00 2001 From: mpv Date: Fri, 4 Sep 2015 17:48:47 +0300 Subject: [PATCH] Make sketch lines more selectable (selection area is increased) --- src/XGUI/XGUI_Displayer.cpp | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/XGUI/XGUI_Displayer.cpp b/src/XGUI/XGUI_Displayer.cpp index c79aeafac..887e70468 100644 --- a/src/XGUI/XGUI_Displayer.cpp +++ b/src/XGUI/XGUI_Displayer.cpp @@ -210,7 +210,14 @@ void XGUI_Displayer::display(ObjectPtr theObject, AISObjectPtr theAIS, emit objectDisplayed(theObject, theAIS); activate(anAISIO, myActiveSelectionModes, theUpdateViewer); - } + // the fix from VPA for more suitable selection of sketcher lines + if(anAISIO->Width() > 1) { + for(int aModeIdx = 0; aModeIdx < myActiveSelectionModes.length(); ++aModeIdx) { + aContext->SetSelectionSensitivity(anAISIO, + myActiveSelectionModes.value(aModeIdx), anAISIO->Width() + 2); + } + } + } if (theUpdateViewer) updateViewer(); } -- 2.39.2