forked from openlp/openlp
The Image cache was being updates with a null image and this was leading to a corruption in the cache.
Only add a file if it is there! bzr-revno: 1547 Fixes: https://launchpad.net/bugs/766201
This commit is contained in:
commit
2d08c0ec2b
@ -162,8 +162,10 @@ class Renderer(object):
|
||||
self.theme_data = self.theme_manager.getThemeData(theme)
|
||||
self._calculate_default(self.screens.current[u'size'])
|
||||
self._build_text_rectangle(self.theme_data)
|
||||
self.image_manager.add_image(self.theme_data.theme_name,
|
||||
self.theme_data.background_filename)
|
||||
# if No file do not update cache
|
||||
if self.theme_data.background_filename:
|
||||
self.image_manager.add_image(self.theme_data.theme_name,
|
||||
self.theme_data.background_filename)
|
||||
return self._rect, self._rect_footer
|
||||
|
||||
def generate_preview(self, theme_data, force_page=False):
|
||||
|
Loading…
Reference in New Issue
Block a user