diff options
author | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-04-08 03:04:13 +0200 |
---|---|---|
committer | Jan-Marek Glogowski <glogow@fbihome.de> | 2021-04-08 04:30:19 +0200 |
commit | 58e299f7c26fd0e5094fb68a30349c5962c003ef (patch) | |
tree | 2ac21dd0be45e2a23a329b19a16b87aa5acad1d7 /sc/source/ui/xmlsource/xmlsourcedlg.cxx | |
parent | fix missing libnumbertext config (diff) | |
download | core-58e299f7c26fd0e5094fb68a30349c5962c003ef.tar.gz core-58e299f7c26fd0e5094fb68a30349c5962c003ef.zip |
Downgrade to liborcus 0.15 and mdds 0.15
... so LO can build with stock Ubuntu 20.04.
Change-Id: I7c2647ba932f4c6d8f540fca1a531d498c5c3675
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)); |