forked from openlp/openlp
Coding standards
This commit is contained in:
parent
fe5b3e6771
commit
bff74507d7
@ -174,7 +174,7 @@ def resize_image(image, width, height):
|
||||
"""
|
||||
preview = QtGui.QImage(image)
|
||||
if not preview.isNull():
|
||||
if(preview.width() == width and preview.height == height):
|
||||
if preview.width() == width and preview.height == height:
|
||||
return preview
|
||||
preview = preview.scaled(width, height, QtCore.Qt.KeepAspectRatio,
|
||||
QtCore.Qt.SmoothTransformation)
|
||||
|
@ -138,3 +138,4 @@ class PresentationPlugin(Plugin):
|
||||
'programs. The choice of available presentation programs is '
|
||||
'available to the user in a drop down box.')
|
||||
return about_text
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user