Remove section line from DVP on delete of DVS

This commit is contained in:
WandererFan 2017-01-04 13:44:29 -05:00
parent 60ba62c09f
commit 78c07ced57
3 changed files with 10 additions and 1 deletions

View File

@ -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;

View File

@ -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[];

View File

@ -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() ||