[PD] fix Pad/Pocket logic issue

- fixes the bug reported in https://forum.freecadweb.org/viewtopic.php?f=3&t=70266
  as Method #2
  -> When switching to two dimensions, symmetric must be unchecked if it is checked
This commit is contained in:
Uwe
2022-07-17 02:03:35 +02:00
parent faa1f96f08
commit 094ae93678
2 changed files with 6 additions and 0 deletions

View File

@@ -107,6 +107,9 @@ void TaskPadParameters::onModeChanged(int index)
break;
case Modes::TwoDimensions:
pcPad->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}

View File

@@ -118,6 +118,9 @@ void TaskPocketParameters::onModeChanged(int index)
case Modes::TwoDimensions:
oldLength = pcPocket->Length.getValue();
pcPocket->Type.setValue("TwoLengths");
// symmetric is then not possible
if (ui->checkBoxMidplane->isChecked())
ui->checkBoxMidplane->setChecked(false);
break;
}