[TD] some Detail View fixes

see https://forum.freecadweb.org/viewtopic.php?f=35&t=45236&p=388925#p388925 for a description of the changes
This commit is contained in:
donovaly
2020-04-18 14:56:01 +02:00
parent bbdaa62890
commit ec58acb7df
6 changed files with 60 additions and 17 deletions

View File

@@ -238,17 +238,17 @@ void TaskProjGroup::projectionTypeChanged(int index)
void TaskProjGroup::scaleTypeChanged(int index)
{
if(blockUpdate)
if (blockUpdate)
return;
//defaults to prevent scale changing
ui->sbScaleNum->setEnabled(false);
ui->sbScaleDen->setEnabled(false);
if(index == 0) {
if (index == 0) {
// Document Scale Type
multiView->ScaleType.setValue("Page");
} else if(index == 1) {
} else if (index == 1) {
// Automatic Scale Type
//block recompute
multiView->ScaleType.setValue("Automatic");
@@ -256,7 +256,7 @@ void TaskProjGroup::scaleTypeChanged(int index)
multiView->Scale.setValue(autoScale);
//unblock recompute
} else if(index == 2) {
} else if (index == 2) {
// Custom Scale Type
//block recompute
multiView->ScaleType.setValue("Custom");