From 3de7bc8b738fc0259cb278b7b0f166f0a312017e Mon Sep 17 00:00:00 2001 From: WandererFan Date: Wed, 4 Jan 2017 13:44:29 -0500 Subject: [PATCH] Remove section line from DVP on delete of DVS --- src/Mod/TechDraw/App/DrawViewSection.cpp | 5 +++++ src/Mod/TechDraw/App/DrawViewSection.h | 1 + src/Mod/TechDraw/Gui/QGIViewPart.cpp | 5 ++++- 3 files changed, 10 insertions(+), 1 deletion(-) diff --git a/src/Mod/TechDraw/App/DrawViewSection.cpp b/src/Mod/TechDraw/App/DrawViewSection.cpp index 205fe01688..821f2f46c1 100644 --- a/src/Mod/TechDraw/App/DrawViewSection.cpp +++ b/src/Mod/TechDraw/App/DrawViewSection.cpp @@ -506,6 +506,11 @@ Base::Vector3d DrawViewSection::getSectionVector (const std::string sectionName) return adjResult; } +void DrawViewSection::unsetupObject() +{ + getBaseDVP()->touch(); +} + TechDraw::DrawViewPart* DrawViewSection::getBaseDVP() { TechDraw::DrawViewPart* baseDVP = nullptr; diff --git a/src/Mod/TechDraw/App/DrawViewSection.h b/src/Mod/TechDraw/App/DrawViewSection.h index 5f3f05fdde..7ff5a28550 100644 --- a/src/Mod/TechDraw/App/DrawViewSection.h +++ b/src/Mod/TechDraw/App/DrawViewSection.h @@ -89,6 +89,7 @@ public: Base::Vector3d getSectionVector (const std::string sectionName); TechDraw::DrawViewPart* getBaseDVP(); TechDraw::DrawProjGroupItem* getBaseDPGI(); + virtual void unsetupObject(); static const char* SectionDirEnums[]; diff --git a/src/Mod/TechDraw/Gui/QGIViewPart.cpp b/src/Mod/TechDraw/Gui/QGIViewPart.cpp index d0e6bba10b..e361ad7791 100644 --- a/src/Mod/TechDraw/Gui/QGIViewPart.cpp +++ b/src/Mod/TechDraw/Gui/QGIViewPart.cpp @@ -323,7 +323,10 @@ void QGIViewPart::updateView(bool update) viewPart->SmoothHidden.isTouched() || viewPart->SeamHidden.isTouched() || viewPart->IsoHidden.isTouched() || - viewPart->IsoCount.isTouched() ) { + viewPart->IsoCount.isTouched() || + viewPart->ShowSectionLine.isTouched() || + viewPart->HorizCenterLine.isTouched() || + viewPart->VertCenterLine.isTouched() ) { draw(); } else if (update || viewPart->LineWidth.isTouched() ||