diff options
Diffstat (limited to 'wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py')
-rw-r--r-- | wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py index bfdd6671ba4f..18fefbe24230 100644 --- a/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py +++ b/wizards/com/sun/star/wizards/letter/LetterWizardDialogImpl.py @@ -989,10 +989,9 @@ class LetterWizardDialogImpl(LetterWizardDialog): '''Localise the template''' constRangeList = TextDocument.searchFillInItems(1) - for i in xrange(constRangeList.Count): - item = constRangeList.getByIndex(i) - text = item.String.lower() - aux = TextElement(item, self.resources.dictConstants[text], + for i in constRangeList: + text = i.String.lower() + aux = TextElement(i, self.resources.dictConstants[text], "hint", self.xMSF) aux.write() |