summaryrefslogtreecommitdiff
path: root/wizards/com/sun/star/wizards/common/XMLHelper.py
diff options
context:
space:
mode:
Diffstat (limited to 'wizards/com/sun/star/wizards/common/XMLHelper.py')
-rw-r--r--wizards/com/sun/star/wizards/common/XMLHelper.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/wizards/com/sun/star/wizards/common/XMLHelper.py b/wizards/com/sun/star/wizards/common/XMLHelper.py
index 7ea3de338370..0af198cf3e0b 100644
--- a/wizards/com/sun/star/wizards/common/XMLHelper.py
+++ b/wizards/com/sun/star/wizards/common/XMLHelper.py
@@ -19,8 +19,8 @@ class XMLHelper:
@classmethod
def addElement(self, parent, name, attNames, attValues):
- doc = parent.ownerDocument
- if (doc == None):
+ doc = parent.getOwnerDocument()
+ if (doc is None):
doc = parent
e = doc.createElement(name)
for i in range(len(attNames)):