diff options
-rw-r--r-- | wizards/com/sun/star/wizards/document/OfficeDocument.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/document/OfficeDocument.py b/wizards/com/sun/star/wizards/document/OfficeDocument.py index 69391bbbcb4b..8abc1e1bfbf7 100644 --- a/wizards/com/sun/star/wizards/document/OfficeDocument.py +++ b/wizards/com/sun/star/wizards/document/OfficeDocument.py @@ -64,7 +64,7 @@ class OfficeDocument(object): def dispose(self, xMSF, xComponent): try: - if xComponent != None: + if xComponent is not None: xFrame = xComponent.CurrentController.Frame if xComponent.isModified(): xComponent.setModified(False) @@ -228,7 +228,7 @@ class OfficeDocument(object): def close(self, xComponent): bState = False - if xComponent != None: + if xComponent is not None: try: xComponent.close(True) bState = True |