[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:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user