diff options
| author | Kaalleen <36401965+kaalleen@users.noreply.github.com> | 2025-10-10 10:25:49 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-10-10 10:25:49 +0200 |
| commit | 2c295ace644a27b7d1523c047e168aac2ead03dc (patch) | |
| tree | 436f73eb6b788c3ac68fdda3b1e15fac27a8eef0 /lib/gui/edit_json/editable_list.py | |
| parent | 31cebe4228be707a1fe0a8727044fbc7271dd4b3 (diff) | |
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
Diffstat (limited to 'lib/gui/edit_json/editable_list.py')
| -rw-r--r-- | lib/gui/edit_json/editable_list.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |
