From 8339bd9618c35331919d374d8f9abd92b79fdd46 Mon Sep 17 00:00:00 2001 From: PaddleStroke Date: Wed, 7 Aug 2024 11:20:22 +0200 Subject: [PATCH] TechDraw: ProjGroup Fix dim disappearing on upgrade. And also scale and scaleType properties not reappearing on downgrade. --- src/Mod/TechDraw/Gui/TaskProjGroup.cpp | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/src/Mod/TechDraw/Gui/TaskProjGroup.cpp b/src/Mod/TechDraw/Gui/TaskProjGroup.cpp index fdabe5546ea6..52e9b8dc5927 100644 --- a/src/Mod/TechDraw/Gui/TaskProjGroup.cpp +++ b/src/Mod/TechDraw/Gui/TaskProjGroup.cpp @@ -313,8 +313,8 @@ void TaskProjGroup::turnViewToProjGroup() viewPart->X.setValue(0.0); viewPart->Y.setValue(0.0); viewPart->ScaleType.setValue("Custom"); - viewPart->Scale.setStatus(App::Property::Hidden, true); viewPart->ScaleType.setStatus(App::Property::Hidden, true); + viewPart->Scale.setStatus(App::Property::Hidden, true); viewPart->Label.setValue("Front"); multiView->addView(viewPart); @@ -325,7 +325,7 @@ void TaskProjGroup::turnViewToProjGroup() viewPart->LockPosition.setStatus(App::Property::ReadOnly, true); //Front should stay locked. viewPart->LockPosition.purgeTouched(); - multiView->requestPaint();//make sure the group object is on the Gui page + m_page->requestPaint(); view = multiView; updateUi(); @@ -336,14 +336,11 @@ void TaskProjGroup::turnProjGroupToView() TechDraw::DrawViewPart* viewPart = multiView->getAnchor(); viewPart->Scale.setValue(multiView->Scale.getValue()); viewPart->ScaleType.setValue(multiView->ScaleType.getValue()); - viewPart->Scale.setStatus(App::Property::Hidden, true); - viewPart->ScaleType.setStatus(App::Property::Hidden, true); - viewPart->Scale.purgeTouched(); - viewPart->ScaleType.purgeTouched(); + viewPart->Scale.setStatus(App::Property::Hidden, false); + viewPart->ScaleType.setStatus(App::Property::Hidden, false); viewPart->Label.setValue("View"); viewPart->LockPosition.setValue(false); viewPart->LockPosition.setStatus(App::Property::ReadOnly, false); - viewPart->LockPosition.purgeTouched(); viewPart->X.setValue(multiView->X.getValue()); viewPart->Y.setValue(multiView->Y.getValue()); m_page->addView(viewPart);