[Libreoffice-commits] .: Branch 'libreoffice-4-0' - wizards/com
Libreoffice Gerrit user
logerrit at kemper.freedesktop.org
Mon Dec 17 00:36:54 PST 2012
wizards/com/sun/star/wizards/text/TextFieldHandler.py | 8 +++++---
1 file changed, 5 insertions(+), 3 deletions(-)
New commits:
commit 41bff3e75902ba032b0642385600d66b7beb7533
Author: Xisco Fauli <anistenis at gmail.com>
Date: Sun Dec 16 18:54:41 2012 +0100
pywizards: handle UnknownPropertyException
Change-Id: I922d27f584ef39d543ee2bba997680dbea06d95f
Reviewed-on: https://gerrit.libreoffice.org/1355
Reviewed-by: Miklos Vajna <vmiklos at suse.cz>
Tested-by: Miklos Vajna <vmiklos at suse.cz>
diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
index 9af08be..379abb1 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
@@ -149,7 +149,6 @@ class TextFieldHandler(object):
if i.supportsService(
"com.sun.star.text.TextField.DateTime"):
i.IsFixed = _bSetFixed
-
except Exception:
traceback.print_exc()
@@ -158,8 +157,11 @@ class TextFieldHandler(object):
try:
xDependentTextFields = TextFieldHandler.dictTextFields.values()
for i in xDependentTextFields:
- if not i.TextFieldMaster.Content:
- i.dispose()
+ try:
+ if not i.TextFieldMaster.Content:
+ i.dispose()
+ except UnknownPropertyException:
+ pass
except Exception:
traceback.print_exc()
More information about the Libreoffice-commits
mailing list