diff options
author | Miklos Vajna <vmiklos@collabora.com> | 2024-06-20 09:53:00 +0200 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2024-06-20 10:56:44 +0200 |
commit | afb4ea67463d9f0200dc6216cfd932aec0984c82 (patch) | |
tree | 7f1a7562bc65a5b638fe6f25b00280fd69cf40bd /sd/source/ui/inc/sdpopup.hxx | |
parent | 41d26f14fffdb701f6e7ef459a11577725cd0d27 (diff) |
tdf#161652 editeng, RTF copy: only write used paragraph styles
Copy a single world from the Impress bugdoc to Writer, number of
paragraph styles increase from 126 to 221, while only +0 or +1 are
expected.
It seems the problem is that the editeng doc of the shape refers to all
styles of the masterpage and we write the style table before the
content, so we export all styles to be on the safe side.
Fix the problem by iterating the paragraphs of the selection in the
"copy" (not "export") case, assuming that typically the selection
doesn't refer to all available styles in the document, and the number of
paragraphs in a shape is not a large amount.
An alternative would be to limit the style import on the RTF reading
side, but not producing those not needed styles in the first place looks
superior.
Change-Id: I43e4c542e530ff6422357a28399718e89fdbabe9
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/169251
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
Diffstat (limited to 'sd/source/ui/inc/sdpopup.hxx')
0 files changed, 0 insertions, 0 deletions