Coding standards

This commit is contained in:
Jonathan Corwin 2010-07-11 21:53:53 +01:00
parent fe5b3e6771
commit bff74507d7
3 changed files with 470 additions and 469 deletions

View File

@ -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)

View File

@ -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