Default ImpressController.presentation.Display to 1 in case the ScreenList() call fails, which should only happen while running tests.

This commit is contained in:
Felipe Polo-Wood 2013-10-19 23:53:28 -04:00
parent d4d572bf80
commit 1f7a3e0fb3
1 changed files with 2 additions and 3 deletions

View File

@ -252,7 +252,7 @@ class ImpressDocument(PresentationDocument):
try:
self.presentation.Display = ScreenList().current['number'] + 1
except:
log.debug('Unable to load the current display')
self.presentation.Display = 1
self.control = None
self.create_thumbnails()
self.create_titles_and_notes()
@ -494,5 +494,4 @@ class ImpressDocument(PresentationDocument):
note = ' '
notes.append(note)
self.save_titles_and_notes(titles,notes)
return
return