From b0dc146043361df166dc616dc3d6840b5594789b Mon Sep 17 00:00:00 2001 From: Raoul Snyman Date: Tue, 20 Sep 2011 19:53:09 +0200 Subject: [PATCH] Added the default background colour back in so that the rest of the app that is not expecting to have to supply a background colour doesn't have to be changed. Fixes: https://launchpad.net/bugs/803342 --- openlp/core/lib/__init__.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/openlp/core/lib/__init__.py b/openlp/core/lib/__init__.py index 1454f877e..e24045883 100644 --- a/openlp/core/lib/__init__.py +++ b/openlp/core/lib/__init__.py @@ -144,7 +144,7 @@ def image_to_byte(image): # convert to base64 encoding so does not get missed! return byte_array.toBase64() -def resize_image(image_path, width, height, background): +def resize_image(image_path, width, height, background=u'#000000'): """ Resize an image to fit on the current screen. @@ -159,6 +159,8 @@ def resize_image(image_path, width, height, background): ``background`` The background colour defaults to black. + + DO NOT REMOVE THE DEFAULT BACKGROUND VALUE! """ log.debug(u'resize_image - start') reader = QtGui.QImageReader(image_path)