forked from openlp/openlp
Default ImpressController.presentation.Display to 1 in case the ScreenList() call fails, which should only happen while running tests.
This commit is contained in:
parent
d4d572bf80
commit
1f7a3e0fb3
@ -252,7 +252,7 @@ class ImpressDocument(PresentationDocument):
|
|||||||
try:
|
try:
|
||||||
self.presentation.Display = ScreenList().current['number'] + 1
|
self.presentation.Display = ScreenList().current['number'] + 1
|
||||||
except:
|
except:
|
||||||
log.debug('Unable to load the current display')
|
self.presentation.Display = 1
|
||||||
self.control = None
|
self.control = None
|
||||||
self.create_thumbnails()
|
self.create_thumbnails()
|
||||||
self.create_titles_and_notes()
|
self.create_titles_and_notes()
|
||||||
@ -495,4 +495,3 @@ class ImpressDocument(PresentationDocument):
|
|||||||
notes.append(note)
|
notes.append(note)
|
||||||
self.save_titles_and_notes(titles,notes)
|
self.save_titles_and_notes(titles,notes)
|
||||||
return
|
return
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user