diff options
author | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-15 10:25:15 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.co.uk> | 2014-04-15 10:30:11 +0200 |
commit | 762660eec225d69f5284f22f6ff5f4b4108fe288 (patch) | |
tree | 5f571a5dcadf0fced0202b70b1fc0be20a117bd6 /oox | |
parent | 2dde1db05700df2f8a2c2be0e451a42e091cbbfc (diff) |
drawingML export: search for tab only once, not 3 times per line
Change-Id: I4255862d4bfb673dbcf871282f65aa6b1ad4616e
Diffstat (limited to 'oox')
-rw-r--r-- | oox/source/export/drawingml.cxx | 6 |
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); } |