From 5dd93936ffd114ed1b28deaa92954e2dfbb11866 Mon Sep 17 00:00:00 2001 From: nds Date: Tue, 6 Sep 2016 15:19:51 +0300 Subject: [PATCH] Correction for reentrant tangent arc --- src/PartSet/PartSet_SketcherReetntrantMgr.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/PartSet/PartSet_SketcherReetntrantMgr.cpp b/src/PartSet/PartSet_SketcherReetntrantMgr.cpp index 517e961c6..3f84648c8 100755 --- a/src/PartSet/PartSet_SketcherReetntrantMgr.cpp +++ b/src/PartSet/PartSet_SketcherReetntrantMgr.cpp @@ -227,7 +227,7 @@ bool PartSet_SketcherReetntrantMgr::processMouseReleased(ModuleBase_IViewWindow* PartSet_WidgetPoint2D* aPoint2DWdg = dynamic_cast(module()->activeWidget()); ModuleBase_ModelWidget* aFirstWidget = aPanel->findFirstAcceptingValueWidget(); if (aPoint2DWdg && aPoint2DWdg == aFirstWidget) { - if (!aPreSelected.empty() && myPreviousFeature->getKind() == SketchPlugin_Point::ID()) + if (!aPreSelected.empty()) aPoint2DWdg->setPreSelection(aPreSelected.front()); aPoint2DWdg->mouseReleased(theWnd, theEvent); if (!aPreSelected.empty()) @@ -560,7 +560,8 @@ bool PartSet_SketcherReetntrantMgr::copyReetntrantAttributes(const FeaturePtr& t const bool isTemporary) { bool aChanged = false; - if (!theSourceFeature.get()) + if (!theSourceFeature.get() || !theSourceFeature->data().get() || + !theSourceFeature->data()->isValid()) return aChanged; std::string aFeatureKind = theSourceFeature->getKind(); -- 2.39.2