summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/letter
diff options
context:
space:
mode:
authorXisco Fauli <anistenis@gmail.com>2012-10-21 21:23:10 +0200
committerxisco <xisco@xisco-laptop.(none)>2012-10-23 01:13:17 +0200
commitc06ee4c3d0b85b3452dfe7c5a46ea85799f54609 (patch)
tree6a6493651d3e774983805d43a383b4054f565d04 /wizards/com/sun/star/wizards/letter
parentb8c3e47fd4dece8daf6b7aa016e3f3098827e897 (diff)
pyletter: Fix avoid to load the same template when it's already selected
Change-Id: Ia52beb31dfd30dc1e4d914a41e858e3258b7629b
Diffstat (limited to 'wizards/com/sun/star/wizards/letter')
-rw-r--r--wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
index bf171c62c9ee..a7dc1a49e6bd 100644
--- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
+++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py
@@ -378,7 +378,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
def lstBusinessStyleItemChanged(self):
selectedItemPos = self.lstBusinessStyle.SelectedItemPos
- if LetterWizardDialogImpl.lstBusinessStylePos is not selectedItemPos:
+ if LetterWizardDialogImpl.lstBusinessStylePos != selectedItemPos:
LetterWizardDialogImpl.lstBusinessStylePos = selectedItemPos
TextDocument.xTextDocument = \
self.myLetterDoc.loadAsPreview(
@@ -391,7 +391,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
def lstPrivOfficialStyleItemChanged(self):
selectedItemPos = self.lstPrivOfficialStyle.SelectedItemPos
- if LetterWizardDialogImpl.lstPrivOfficialStylePos is not selectedItemPos:
+ if LetterWizardDialogImpl.lstPrivOfficialStylePos != selectedItemPos:
LetterWizardDialogImpl.lstPrivOfficialStylePos = selectedItemPos
TextDocument.xTextDocument = \
self.myLetterDoc.loadAsPreview(
@@ -404,7 +404,7 @@ class LetterWizardDialogImpl(LetterWizardDialog):
def lstPrivateStyleItemChanged(self):
selectedItemPos = self.lstPrivateStyle.SelectedItemPos
- if LetterWizardDialogImpl.lstPrivateStylePos is not selectedItemPos:
+ if LetterWizardDialogImpl.lstPrivateStylePos != selectedItemPos:
LetterWizardDialogImpl.lstPrivateStylePos = selectedItemPos
TextDocument.xTextDocument = \
self.myLetterDoc.loadAsPreview(