[Libreoffice-commits] .: wizards/com

Libreoffice Gerrit user logerrit at kemper.freedesktop.org
Mon Dec 3 12:58:45 PST 2012


 wizards/com/sun/star/wizards/text/TextFieldHandler.py |    9 ++++++---
 1 file changed, 6 insertions(+), 3 deletions(-)

New commits:
commit 7236370a4f0228878ecb2b7dd160f009f8ddefd1
Author: Xisco Fauli <anistenis at gmail.com>
Date:   Mon Dec 3 21:56:59 2012 +0100

    pywizards: handle exception
    
    Change-Id: Ia53cf4e2ab8f2e2905b1dc24ac7d6b17e9330154

diff --git a/wizards/com/sun/star/wizards/text/TextFieldHandler.py b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
index ce00db8..9af08be 100644
--- a/wizards/com/sun/star/wizards/text/TextFieldHandler.py
+++ b/wizards/com/sun/star/wizards/text/TextFieldHandler.py
@@ -102,9 +102,12 @@ class TextFieldHandler(object):
                 TextFieldHandler.dictTextFields[_FieldName]
         except KeyError:
             return None
-        if hasattr(DependentTextFields, "TextFieldMaster"):
-            DependentTextFields.TextFieldMaster.Content = _FieldContent
-            self.refreshTextFields()
+        try:
+            if hasattr(DependentTextFields, "TextFieldMaster"):
+                DependentTextFields.TextFieldMaster.Content = _FieldContent
+                self.refreshTextFields()
+        except UnknownPropertyException:
+            pass
 
     def updateDocInfoFields(self):
         try:


More information about the Libreoffice-commits mailing list