Skip to content

Commit

Permalink
DRO popup now converts coordinate to the users selected units (#1935)
Browse files Browse the repository at this point in the history
Fix for issue 1928
  • Loading branch information
bertieconfundo authored Jul 19, 2022
1 parent ee968cc commit 00c95ee
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 00c95ee

Please sign in to comment.