[TD] Dimensions: donovaly's minor fixes for TheoreticalExact dimensions.

This commit is contained in:
Aapo
2021-01-29 10:27:11 +02:00
committed by wwmayer
parent e802179cf4
commit 4ea0784341
3 changed files with 10 additions and 2 deletions

View File

@@ -216,10 +216,13 @@ void DrawViewDimension::onChanged(const App::Property* prop)
UnderTolerance.setReadOnly(true);
FormatSpecOverTolerance.setReadOnly(true);
FormatSpecUnderTolerance.setReadOnly(true);
ArbitraryTolerances.setValue(false);
ArbitraryTolerances.setReadOnly(true);
}
else {
OverTolerance.setReadOnly(false);
FormatSpecOverTolerance.setReadOnly(false);
ArbitraryTolerances.setReadOnly(false);
if (!EqualTolerance.getValue()) {
UnderTolerance.setReadOnly(false);
FormatSpecUnderTolerance.setReadOnly(false);
@@ -923,7 +926,8 @@ std::string DrawViewDimension::getFormattedDimensionValue(int partial)
{
QString qFormatSpec = QString::fromUtf8(FormatSpec.getStrValue().data());
if (Arbitrary.getValue() && !EqualTolerance.getValue()) {
if ( (Arbitrary.getValue() && !EqualTolerance.getValue())
|| (Arbitrary.getValue() && TheoreticalExact.getValue()) ) {
return FormatSpec.getStrValue();
}