From 7e2e72b4a67ce49828b0d2579b80794f0200e739 Mon Sep 17 00:00:00 2001 From: Arjan Schrijver Date: Thu, 10 Jan 2013 13:05:33 +0100 Subject: [PATCH] Read the background color setting outside of the loop --- openlp/core/lib/serviceitem.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/openlp/core/lib/serviceitem.py b/openlp/core/lib/serviceitem.py index fb45eb3b3..aacb62fbf 100644 --- a/openlp/core/lib/serviceitem.py +++ b/openlp/core/lib/serviceitem.py @@ -336,10 +336,10 @@ class ServiceItem(object): for slide in serviceitem[u'serviceitem'][u'data']: self._raw_frames.append(slide) elif self.service_item_type == ServiceItemType.Image: + settingsSection = serviceitem[u'serviceitem'][u'header'][u'name'] + background = QtGui.QColor(Settings().value(settingsSection + + u'/background color', QtCore.QVariant(u'#000000'))) for text_image in serviceitem[u'serviceitem'][u'data']: - settingsSection = serviceitem[u'serviceitem'][u'header'][u'name'] - background = QtGui.QColor(Settings().value(settingsSection - + u'/background color', QtCore.QVariant(u'#000000'))) filename = os.path.join(path, text_image) self.add_from_image(filename, text_image, background) elif self.service_item_type == ServiceItemType.Command: