diff options
Diffstat (limited to 'sc/source/ui/xmlsource/xmlsourcedlg.cxx')
-rw-r--r-- | sc/source/ui/xmlsource/xmlsourcedlg.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/sc/source/ui/xmlsource/xmlsourcedlg.cxx b/sc/source/ui/xmlsource/xmlsourcedlg.cxx index edc8ca3d5dcb..7d4724234c14 100644 --- a/sc/source/ui/xmlsource/xmlsourcedlg.cxx +++ b/sc/source/ui/xmlsource/xmlsourcedlg.cxx @@ -49,12 +49,8 @@ OUString getXPath( if (pData) rNamespaces.push_back(pData->mnNamespaceID); - // element separator is '/' whereas attribute separator is '/@' in xpath. aBuf.insert(0, rTree.get_text(*xEntry, 0)); - if (isAttribute(rTree, *xEntry)) - aBuf.insert(0, "/@"); - else - aBuf.insert(0, '/'); + aBuf.insert(0, isAttribute(rTree, *xEntry) ? '@' : '/'); } while (rTree.iter_parent(*xEntry)); |