Presentation fixes for Impress

bzr-revno: 616
This commit is contained in:
j@corwin.co.uk 2009-10-21 17:02:37 +01:00 committed by Tim Bentley
commit d101a38c1c
2 changed files with 3 additions and 2 deletions

View File

@ -74,8 +74,7 @@ class MessageListener(object):
return return
if not self.controller.is_loaded(): if not self.controller.is_loaded():
self.controller.load_presentation(self.controller.filepath) self.controller.load_presentation(self.controller.filepath)
else: self.controller.start_presentation()
self.controller.start_presentation()
if self.controller.slidenumber > 1: if self.controller.slidenumber > 1:
self.controller.goto_slide(self.controller.slidenumber) self.controller.goto_slide(self.controller.slidenumber)

View File

@ -198,6 +198,8 @@ class PresentationController(object):
recent than the powerpoint recent than the powerpoint
""" """
lastimage = self.get_slide_preview_file(self.get_slide_count()) lastimage = self.get_slide_preview_file(self.get_slide_count())
if lastimage is None:
return False
if not os.path.isfile(lastimage): if not os.path.isfile(lastimage):
return False return False
imgdate = os.stat(lastimage).st_mtime imgdate = os.stat(lastimage).st_mtime