diff options
author | László Németh <nemeth@numbertext.org> | 2019-09-12 15:48:35 +0200 |
---|---|---|
committer | László Németh <nemeth@numbertext.org> | 2019-09-13 07:59:53 +0200 |
commit | c5d37d324cd6d17114c209de1862344ad58a1d93 (patch) | |
tree | 181eed9ab48d27b9bfca72840bd3fe0204b3c1a2 /sax | |
parent | 0701a1838280d4fa9c54ca39f1a5297fe4857a16 (diff) |
tdf#117274 XLSX export: fix VML comment shape type id
to avoid shape multiplication in a mixed environment.
MSO needs the special unescaped VML comment shape type
id "_x0000_t202" to avoid of generating also DrawingML
shapes from the VML ones. Calc export escaped the shape
type ids ("_x005F_x0000_t202"), keeping also the DrawingML
shapes, so every round trip between LO and MSO resulted
more and more broken shapes in the document.
See also commit ea7274259a211170ee9f5a8714a2f9acd8bed6d8
"tdf#114842 Fix comment shape export for Calc".
Change-Id: I55b29146ebcdc20cf4f53464bf318fb34bfc5934
Reviewed-on: https://gerrit.libreoffice.org/78831
Tested-by: Jenkins
Reviewed-by: László Németh <nemeth@numbertext.org>
Diffstat (limited to 'sax')
-rw-r--r-- | sax/source/tools/fastserializer.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/sax/source/tools/fastserializer.cxx b/sax/source/tools/fastserializer.cxx index d862c163fb38..2741bb4d4a28 100644 --- a/sax/source/tools/fastserializer.cxx +++ b/sax/source/tools/fastserializer.cxx @@ -130,7 +130,9 @@ namespace sax_fastparser { if (nLen == -1) nLen = pStr ? strlen(pStr) : 0; - if (!bEscape) + if ( !bEscape || + // tdf#127274 don't escape the special VML shape type id "#_x0000_t202" + (pStr && strcmp(pStr, "#_x0000_t202") == 0) ) { writeBytes( pStr, nLen ); return; |