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
if not self.controller.is_loaded():
self.controller.load_presentation(self.controller.filepath)
else:
self.controller.start_presentation()
self.controller.start_presentation()
if self.controller.slidenumber > 1:
self.controller.goto_slide(self.controller.slidenumber)

View File

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