summaryrefslogtreecommitdiffstats
path: root/cui
diff options
context:
space:
mode:
authorMichael Stahl <Michael.Stahl@cib.de>2019-11-14 14:35:06 +0100
committerMiklos Vajna <vmiklos@collabora.com>2019-11-15 09:07:06 +0100
commit63c1dff6d2392cc2a632b78327dfa53edb081602 (patch)
tree1b02019094a6117b5bb492f96d6de9e6362b19f1 /cui
parentRelated: tdf#117658 PPTX import: ignore math text outside <m:t> (diff)
downloadcore-63c1dff6d2392cc2a632b78327dfa53edb081602.tar.gz
core-63c1dff6d2392cc2a632b78327dfa53edb081602.zip
sw: RTF export: fix invalid RTF for shapes and text frames
RtfAttributeOutput::OutputFlyFrame_Impl() writes SdrObject into m_aRunText buffer, but for a text frame it writes directly into m_rExport.Strm(), also writing m_aRunText into it in the middle. So if you have both SdrObject and text frame at the same anchor position, first the shape goes into the buffer and then the first part of the text frame is written to the stream before it and the last part after it, and we get this: sw/source/filter/ww8/rtfattributeoutput.cxx:1886: m_aRunText is not empty And Word refuses to open the file with a funny error message about running out of memory. Reportedly this is a regression from commit d53dd70b15f0e3f7c8a05a93f8fcd70e1147c1f7 but really it was broken already in commit a8b59ef5951fe76b0b733ecef739173c1d104f6f. Change-Id: If01465dee71b63531b46c39dd557066f804c425d Reviewed-on: https://gerrit.libreoffice.org/82702 Reviewed-by: Michael Stahl <michael.stahl@cib.de> Tested-by: Michael Stahl <michael.stahl@cib.de> (cherry picked from commit 4652b911c4376048a452709c953197e1a879a921) Reviewed-on: https://gerrit.libreoffice.org/82736 Tested-by: Jenkins Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'cui')
0 files changed, 0 insertions, 0 deletions