https://bugs.documentfoundation.org/show_bug.cgi?id=164409

BogdanB <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
      Regression By|                            |Miklos Vajna

--- Comment #7 from BogdanB <[email protected]> ---
author  Miklos Vajna <[email protected]>    2024-11-19 08:20:26 +0100
committer       Miklos Vajna <[email protected]>    2024-11-19 11:36:34
+0100
commit  5417dbf339b3e66db38786d922c2294ae40f824e (patch)
tree    ab527c29e9a24bdf975a087869b85d381ac662b3
parent  0f1228ea0e66f90d8cbe1c58d85a9d05a0e3a598 (diff)
tdf#163883 editeng RTF export: fix broken offsets into the para style table
Regression from commit 70d1bd6ee0eba9d6661cd6280566f77a87f2d068
(tdf#161652 editeng, RTF copy: only write used paragraph styles,
2024-06-20), type a few characters into the title placeholder shape in
Impress, switch to the Outline view, select all, copy, paste into
Writer: the resulting text nodes won't have paragraph styles, just
direct formatting.

Inspecting the produced RTF, the problem is that the styles table
started to omit unused styles, but the style -> offset mapping table
still included them, so the offset didn't match, which results in losing
the style on RTF import.

Fix the problem by building the mapping table later also also ignoring
unused paragraph styles there, to restore consistency between declaring
style entries and referring to them.

Change-Id: I9156a881543cc710eb12990f110ceefc77a1858b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176747
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <[email protected]>
(cherry picked from commit c8b607b7c0096c58dc5187262bf0133dee728d50)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/176759
Reviewed-by: Michael Stahl <[email protected]>

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to