Skip to content

Commit

Permalink
fix for issue 1928
Browse files Browse the repository at this point in the history
  • Loading branch information
bertieconfundo committed Jul 19, 2022
1 parent ee968cc commit 858e62b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -354,7 +354,7 @@ public void onResetClick(JComponent component, Axis axis) {
@Override
public void onWorkPositionClick(JComponent component, Axis axis) {
if (backend.isConnected() && backend.isIdle()) {
String text = decimalFormatter.format(backend.getWorkPosition().get(axis));
String text = decimalFormatter.format(backend.getWorkPosition().getPositionIn(units).get(axis));
PopupEditor popupEditor = new PopupEditor(component, "Set " + axis + " work position", text);
popupEditor.setVisible(true);
popupEditor.addPopupListener((value) -> {
Expand Down

0 comments on commit 858e62b

Please sign in to comment.