Skip to content

Commit e0b9628

Browse files
committed
UI: added reconfiguring of axis fields depending on axis' max value
1 parent b16ce82 commit e0b9628

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

src/UI/UserInterface.cpp

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1340,6 +1340,16 @@ namespace UI
13401340
if (axis != nullptr && axis->slot < MaxDisplayableAxes)
13411341
{
13421342
size_t slot = axis->slot;
1343+
1344+
if (axisMaxVal > 1000)
1345+
{
1346+
controlTabAxisPos[slot]->SetNumDecimals(1);
1347+
#if DISPLAY_X == 800
1348+
printTabAxisPos[slot]->SetNumDecimals(1);
1349+
#endif
1350+
movePopupAxisPos[slot]->SetNumDecimals(1);
1351+
}
1352+
13431353
controlTabAxisPos[slot]->SetValue(fval);
13441354
#if DISPLAY_X == 800
13451355
printTabAxisPos[slot]->SetValue(fval);

0 commit comments

Comments
 (0)