From b7bb7d1f2b98c5df7463ad9a65a462d86db3ce9d Mon Sep 17 00:00:00 2001 From: donovaly Date: Wed, 10 Jun 2020 02:20:14 +0200 Subject: [PATCH] [TD] update view when autoscale was set --- src/Mod/TechDraw/Gui/TaskDetail.cpp | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Mod/TechDraw/Gui/TaskDetail.cpp b/src/Mod/TechDraw/Gui/TaskDetail.cpp index a91a7caf62a1..90e2fb335ac1 100644 --- a/src/Mod/TechDraw/Gui/TaskDetail.cpp +++ b/src/Mod/TechDraw/Gui/TaskDetail.cpp @@ -349,10 +349,11 @@ void TaskDetail::onScaleTypeEdit() updateDetail(); } else if (ui->cbScaleType->currentIndex() == 1) { - // automatic scale + // automatic scale (if view is too large to fit into page, it will be scaled down) ui->qsbScale->setEnabled(false); detailFeat->ScaleType.setValue(1.0); - // don't do anything here since automatic scaling is only possible for DrawView + // updating the feature will trigger the rescaling + updateDetail(); } else if (ui->cbScaleType->currentIndex() == 2) { // custom scale