From 61a7c35b39af2dc8aec58536abd8283d8816a0fc Mon Sep 17 00:00:00 2001 From: vsv Date: Fri, 29 Nov 2019 18:14:15 +0300 Subject: [PATCH] Issue #3092: Avoid clearing of already selected projection feature --- src/ModuleBase/ModuleBase_WidgetValidated.cpp | 3 ++- src/PartSet/PartSet_Module.cpp | 4 ++-- src/PartSet/PartSet_SketcherMgr.cpp | 2 ++ 3 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/ModuleBase/ModuleBase_WidgetValidated.cpp b/src/ModuleBase/ModuleBase_WidgetValidated.cpp index f25833228..1536c3066 100644 --- a/src/ModuleBase/ModuleBase_WidgetValidated.cpp +++ b/src/ModuleBase/ModuleBase_WidgetValidated.cpp @@ -178,7 +178,8 @@ bool ModuleBase_WidgetValidated::isValidInFilters(const ModuleBase_ViewerPrsPtr& TopoDS_Shape aTDShape = aShapePtr->impl(); AISObjectPtr aIOPtr = myWorkshop->findPresentation(aResult); if (aIOPtr.get()) { - Handle(AIS_InteractiveObject) anIO = aIOPtr->impl(); + Handle(AIS_InteractiveObject) anIO = + aIOPtr->impl(); aOwnersList.Append(new StdSelect_BRepOwner(aTDShape, anIO)); } else diff --git a/src/PartSet/PartSet_Module.cpp b/src/PartSet/PartSet_Module.cpp index febeae273..342134c7a 100644 --- a/src/PartSet/PartSet_Module.cpp +++ b/src/PartSet/PartSet_Module.cpp @@ -253,8 +253,8 @@ PartSet_Module::PartSet_Module(ModuleBase_IWorkshop* theWshop) "Add parameter in parameters manager dialog", Config_Prop::Shortcut, "Ctrl+A"); - Config_PropManager::registerProp("Windows", "use_hide_faces_panel", "Use HideFaces panel in operations", - Config_Prop::Boolean, "false"); + Config_PropManager::registerProp("Windows", "use_hide_faces_panel", + "Use HideFaces panel in operations", Config_Prop::Boolean, "false"); } //****************************************************** diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index 44924b60f..695d8a0fe 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -970,6 +970,8 @@ bool PartSet_SketcherMgr::isEntity(const std::string& theId) (theId == SketchPlugin_Arc::ID()) || (theId == SketchPlugin_Circle::ID()) || (theId == SketchPlugin_Ellipse::ID()) || + (theId == SketchPlugin_Projection::ID()) || + (theId == SketchPlugin_IntersectionPoint::ID()) || (theId == SketchPlugin_EllipticArc::ID()); } -- 2.39.2