Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
[TD] update view when autoscale was set
  • Loading branch information
donovaly authored and WandererFan committed Jun 10, 2020
1 parent bb86fe1 commit b7bb7d1
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/Mod/TechDraw/Gui/TaskDetail.cpp
Expand Up @@ -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
Expand Down

0 comments on commit b7bb7d1

Please sign in to comment.