Fix broken ask_for_help().

This commit is contained in:
Andrey Golovizin 2014-09-11 23:40:00 +02:00
parent f771722d0b
commit 1f91582ccd
3 changed files with 4 additions and 4 deletions

View file

@ -69,7 +69,7 @@ class Document(object):
try:
glyph_data = self.glyphdb[glyph]
except KeyError:
text, bold, italic = self.ui.ask_for_help(glyph)
text, bold, italic = self.ui.ask_for_help(glyph, self.last_style.bold, self.last_style.italic)
glyph_data = self.glyphdb.add_glyph(glyph, text, bold, italic)
self.last_style = glyph_data.style
return glyph_data