forked from openlp/openlp
Read the background color setting outside of the loop
This commit is contained in:
parent
8b01158856
commit
7e2e72b4a6
@ -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:
|
||||
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')))
|
||||
for text_image in serviceitem[u'serviceitem'][u'data']:
|
||||
filename = os.path.join(path, text_image)
|
||||
self.add_from_image(filename, text_image, background)
|
||||
elif self.service_item_type == ServiceItemType.Command:
|
||||
|
Loading…
Reference in New Issue
Block a user