[PD] fix multi-transform View

- fixes bug 4581
  See the first issue reported here:
  https://forum.freecadweb.org/viewtopic.php?f=3&t=56093#p482553

- also fix issue that one could set 1 occurrence for polar patterns despite 2 are required at least

- also fix potential dereferencing null pointer (reported by MSVC)
This commit is contained in:
donovaly
2021-03-01 02:20:18 +01:00
committed by wwmayer
parent d93567ce27
commit 88c6ed3d2d
2 changed files with 46 additions and 19 deletions

View File

@@ -156,6 +156,7 @@ void TaskPolarPatternParameters::setupUI()
ui->polarAngle->bind(pcPolarPattern->Angle);
ui->spinOccurrences->setMaximum(INT_MAX);
ui->spinOccurrences->setMinimum(2);
ui->spinOccurrences->bind(pcPolarPattern->Occurrences);
ui->comboAxis->setEnabled(true);