Edit Book: Fix another bug in the save/close/re-open edit cycle for AZW3 that could cause images/fonts to get mixed up. Fixes #1276726 [Private bug](https://bugs.launchpad.net/calibre/+bug/1276726)

This commit is contained in:
Kovid Goyal 2014-02-06 19:03:50 +05:30
parent d3e308e5ef
commit 07fdff36a4

View File

@ -415,8 +415,7 @@ class Mobi8Reader(object):
if font['encrypted']:
self.encrypted_fonts.append(href)
else:
if len(data) == len(PLACEHOLDER_GIF) and data == PLACEHOLDER_GIF:
continue
if not (len(data) == len(PLACEHOLDER_GIF) and data == PLACEHOLDER_GIF):
imgtype = what(None, data)
if imgtype is None:
from calibre.utils.magick.draw import identify_data