invoke Screen:restoreFromSavedBB only if font changed

pull/2/merge
Dobrica Pavlinusic 12 years ago
parent 5492025a38
commit 8c01306154

@ -376,8 +376,8 @@ function CREReader:adjustCreReaderCommands()
local item_no = fonts_menu:choose(0, G_height)
debug(face_list[item_no])
Screen:restoreFromSavedBB()
if item_no then
Screen:restoreFromSavedBB()
self.doc:setFontFace(face_list[item_no])
self.font_face = face_list[item_no]
InfoMessage:show("Redrawing with "..face_list[item_no], 0)

Loading…
Cancel
Save