[TD]fix over/under tolerance

- left justify tolerances
- use format spec for tolerance == zero
- prevent uncommanded tolerance format changes
- use 'w' format for HoleShaftFit
- allow zero tolerance values for HoleShaftFit
This commit is contained in:
wandererfan
2024-03-14 14:22:29 -04:00
committed by WandererFan
parent a63ed712f6
commit fca3b80da8
4 changed files with 15 additions and 37 deletions

View File

@@ -302,12 +302,12 @@ void DrawViewDimension::onChanged(const App::Property* prop)
}
}
else if (prop == &FormatSpecOverTolerance) {
if (!ArbitraryTolerances.getValue()) {
if (EqualTolerance.getValue() && !ArbitraryTolerances.getValue()) {
FormatSpecUnderTolerance.setValue(FormatSpecOverTolerance.getValue());
}
}
else if (prop == &FormatSpecUnderTolerance) {
if (!ArbitraryTolerances.getValue()) {
if (EqualTolerance.getValue() && !ArbitraryTolerances.getValue()) {
FormatSpecOverTolerance.setValue(FormatSpecUnderTolerance.getValue());
}
}