openlp-core team mailing list archive
-
openlp-core team
-
Mailing list archive
-
Message #00830
[Merge] lp:~trb143/openlp/fixes into lp:openlp
Tim Bentley has proposed merging lp:~trb143/openlp/fixes into lp:openlp.
Requested reviews:
OpenLP Core (openlp-core)
Fix bugs in previous merges and set the size policy correctly.
--
https://code.launchpad.net/~trb143/openlp/fixes/+merge/14620
Your team OpenLP Core is subscribed to branch lp:openlp.
=== modified file 'openlp/core/lib/__init__.py'
--- openlp/core/lib/__init__.py 2009-11-03 18:14:25 +0000
+++ openlp/core/lib/__init__.py 2009-11-08 14:00:29 +0000
@@ -60,7 +60,7 @@
file = open(xmlfile, u'r')
xml = file.read()
except IOError:
- log.exception(u'Failed to open XML file')
+ print(u'Failed to open XML file')
finally:
if file:
file.close()
=== modified file 'openlp/core/lib/rendermanager.py'
--- openlp/core/lib/rendermanager.py 2009-11-04 01:16:15 +0000
+++ openlp/core/lib/rendermanager.py 2009-11-08 14:00:29 +0000
@@ -253,7 +253,7 @@
newImage = QtGui.QImage(w, h, QtGui.QImage.Format_ARGB32_Premultiplied)
newImage.fill(QtCore.Qt.black)
painter = QtGui.QPainter(newImage)
- painter.drawImage((w-realw) / 2, (h-realh) / 2, preview)
+ painter.drawImage((w - realw) / 2, (h - realh) / 2, preview)
return newImage
def calculate_default(self, screen):
=== modified file 'openlp/core/ui/slidecontroller.py'
--- openlp/core/ui/slidecontroller.py 2009-11-08 09:09:23 +0000
+++ openlp/core/ui/slidecontroller.py 2009-11-08 14:00:29 +0000
@@ -219,7 +219,7 @@
self.PreviewFrame = QtGui.QFrame(self.Splitter)
self.PreviewFrame.setGeometry(QtCore.QRect(0, 0, 300, 225))
self.PreviewFrame.setSizePolicy(QtGui.QSizePolicy(
- QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum))
+ QtGui.QSizePolicy.Preferred, QtGui.QSizePolicy.Minimum, QtGui.QSizePolicy.Label))
self.PreviewFrame.setFrameShape(QtGui.QFrame.StyledPanel)
self.PreviewFrame.setFrameShadow(QtGui.QFrame.Sunken)
self.PreviewFrame.setObjectName(u'PreviewFrame')
@@ -319,7 +319,7 @@
if item.verse_order:
verses = item.verse_order.split(u' ')
for verse in verses:
- if int(verse) > 12:
+ if not verse or int(verse) > 12:
break
try:
self.Songbar.actions[verse].setVisible(True)
=== modified file 'openlp/core/ui/thememanager.py'
--- openlp/core/ui/thememanager.py 2009-11-07 06:45:25 +0000
+++ openlp/core/ui/thememanager.py 2009-11-08 14:00:29 +0000
@@ -271,7 +271,6 @@
return self.themelist
def getThemeData(self, themename):
- assert(themename)
log.debug(u'getthemedata for theme %s', themename)
xml_file = os.path.join(self.path, unicode(themename),
unicode(themename) + u'.xml')
Follow ups