[PD] fix pad/pocket direction issue

- the info if a custom direction is used, was incorrectly determined by checking a checkbox that only displays the vector value, no matter if it is a custom vector or not
This commit is contained in:
Uwe
2021-11-13 04:03:04 +01:00
parent 170e515f15
commit e27270e615
2 changed files with 4 additions and 2 deletions

View File

@@ -640,7 +640,8 @@ bool TaskPadParameters::getAlongSketchNormal(void) const
bool TaskPadParameters::getCustom(void) const
{
return ui->checkBoxDirection->isChecked();
// index 2 is hardcoded to custom vector
return ui->directionCB->currentIndex() == 2 ? true : false;
}
std::string TaskPadParameters::getReferenceAxis(void) const

View File

@@ -650,7 +650,8 @@ bool TaskPocketParameters::getAlongSketchNormal(void) const
bool TaskPocketParameters::getCustom(void) const
{
return ui->checkBoxDirection->isChecked();
// index 2 is hardcoded to custom vector
return ui->directionCB->currentIndex() == 2 ? true : false;
}
std::string TaskPocketParameters::getReferenceAxis(void) const