Fixed crash when non-existent monitor is called for in OpenLP.conf

bzr-revno: 815
This commit is contained in:
Martin Thompson 2010-05-14 19:41:41 +01:00
commit 0993d79056
1 changed files with 2 additions and 1 deletions

View File

@ -61,9 +61,10 @@ class ScreenList(object):
"""
Set up the current screen dimensions
"""
log.debug(u'set_override_display %s', number, )
log.debug(u'set_current_display %s', number, )
if number + 1 > self.display_count:
self.current = self.screen_list[0]
self.override = copy.deepcopy(self.current)
self.current_display = 0
else:
self.current = self.screen_list[number]