Skip to content

Commit 4bcfd3e

Browse files
committed
Gmoccapy: fix error with calculator in tooltable using localization
The tool table is not using localization any more so the calculator should not convert the value using locale.format
1 parent decb18f commit 4bcfd3e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/emc/usr_intf/gmoccapy/gmoccapy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1989,7 +1989,7 @@ def on_tool_col_edit_started(self, widget, filtered_path, new_text, col):
19891989
if col in [1,2,15]:
19901990
store[row][col] = value
19911991
else:
1992-
store[row][col] = locale.format_string("%11.4f", value)
1992+
store[row][col] = f"{value:11.4f}"
19931993
# this is needed to get offsetview out of editing mode
19941994
GLib.timeout_add(50,
19951995
toolview.set_cursor,

0 commit comments

Comments
 (0)