summaryrefslogtreecommitdiff
path: root/oox/source/export/drawingml.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'oox/source/export/drawingml.cxx')
-rw-r--r--oox/source/export/drawingml.cxx6
1 files changed, 4 insertions, 2 deletions
diff --git a/oox/source/export/drawingml.cxx b/oox/source/export/drawingml.cxx
index ff5ad3d75ca4..f3aceee6face 100644
--- a/oox/source/export/drawingml.cxx
+++ b/oox/source/export/drawingml.cxx
@@ -1801,8 +1801,10 @@ std::map< OString, std::vector<OString> > lcl_getAdjNames()
bool bNotDone = aStream.ReadLine(aLine);
while (bNotDone)
{
- OString aKey = aLine.getToken(0, '\t');
- OString aValue = aLine.getToken(1, '\t');
+ sal_Int32 nIndex = 0;
+ // Each line is in a "key\tvalue" format: read the key, the rest is the value.
+ OString aKey = aLine.getToken(0, '\t', nIndex);
+ OString aValue = aLine.copy(nIndex);
aRet[aKey].push_back(aValue);
bNotDone = aStream.ReadLine(aLine);
}