kopia lustrzana https://github.com/inkstitch/inkstitch
do not fail on None in edit json (#3676)
rodzic
8d66330b23
commit
ad04039c3c
|
@ -220,7 +220,11 @@ class LetteringEditJsonPanel(wx.Panel):
|
||||||
if glyph_list.IsItemChecked(selection):
|
if glyph_list.IsItemChecked(selection):
|
||||||
self.horiz_adv_x[glyph] = self.font_meta['horiz_adv_x_default']
|
self.horiz_adv_x[glyph] = self.font_meta['horiz_adv_x_default']
|
||||||
return glyph
|
return glyph
|
||||||
|
horiz_adv_x = None
|
||||||
|
try:
|
||||||
horiz_adv_x = float(glyph_list.GetItem(selection, 2).Text)
|
horiz_adv_x = float(glyph_list.GetItem(selection, 2).Text)
|
||||||
|
except (ValueError, IndexError):
|
||||||
|
pass
|
||||||
if glyph_list.GetItem(selection, 3).Text:
|
if glyph_list.GetItem(selection, 3).Text:
|
||||||
try:
|
try:
|
||||||
horiz_adv_x = float(glyph_list.GetItem(selection, 3).Text)
|
horiz_adv_x = float(glyph_list.GetItem(selection, 3).Text)
|
||||||
|
|
Ładowanie…
Reference in New Issue