From 2c295ace644a27b7d1523c047e168aac2ead03dc Mon Sep 17 00:00:00 2001 From: Kaalleen <36401965+kaalleen@users.noreply.github.com> Date: Fri, 10 Oct 2025 10:25:49 +0200 Subject: Edit json: allow 0 values for horiz_adv_x_default (#3965) * edit json: allow 0 values for horiz_adv_x_default and enable None for using the glyph width * enable None value in generate json too --- lib/gui/edit_json/editable_list.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/gui/edit_json/editable_list.py') diff --git a/lib/gui/edit_json/editable_list.py b/lib/gui/edit_json/editable_list.py index 8f62f554..7a51f0b6 100644 --- a/lib/gui/edit_json/editable_list.py +++ b/lib/gui/edit_json/editable_list.py @@ -24,12 +24,12 @@ class EditableListCtrl(wx.ListCtrl, TextEditMixin): event.Skip() def CloseEditor(self, event=None, swap=False): - text = self.editor.GetValue() if swap: self.editor.Hide() TextEditMixin.CloseEditor(self, event) return + text = self.editor.GetValue() if text: try: float(text) -- cgit v1.2.3