From: mpv Date: Fri, 4 Sep 2015 14:48:47 +0000 (+0300) Subject: Make sketch lines more selectable (selection area is increased) X-Git-Tag: V_1.4.0_beta4~114 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=f8ed036794941797eea4c18c2062e3d649597c44;p=modules%2Fshaper.git Make sketch lines more selectable (selection area is increased) --- 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(); }