From efec5e1e95aaf2f4c34fa064940fc1451ae0927d Mon Sep 17 00:00:00 2001 From: Tim Bentley Date: Sun, 18 Oct 2009 08:49:47 +0100 Subject: [PATCH] Backgounds now appear in Theme editor --- openlp/core/lib/themexmlhandler.py | 2 ++ openlp/core/ui/maindisplay.py | 1 + 2 files changed, 3 insertions(+) diff --git a/openlp/core/lib/themexmlhandler.py b/openlp/core/lib/themexmlhandler.py index 610f30eec..10f2d857a 100644 --- a/openlp/core/lib/themexmlhandler.py +++ b/openlp/core/lib/themexmlhandler.py @@ -90,6 +90,8 @@ class ThemeXML(object): The path name to be added. """ if self.background_filename is not None and path is not None: + self.theme_name = self.theme_name.rstrip().lstrip() + self.background_filename = self.background_filename.rstrip().lstrip() self.background_filename = os.path.join(path, self.theme_name, self.background_filename) diff --git a/openlp/core/ui/maindisplay.py b/openlp/core/ui/maindisplay.py index 73cf077b2..e98d1eb96 100644 --- a/openlp/core/ui/maindisplay.py +++ b/openlp/core/ui/maindisplay.py @@ -108,6 +108,7 @@ class MainDisplay(DisplayLabel): Sets up the screen on a particular screen. @param (integer) screen This is the screen number. """ + log.debug(u'Setup %s for %s ' %(self.screens, screenNumber) ) screen = self.screens[screenNumber] if screen[u'number'] != screenNumber: # We will most probably never actually hit this bit, but just in