Created attachment 151944 [details] First test case Attached documents are loaded and exported with wrong bold properties.
Created attachment 151945 [details] Second test case
LO mixes properties from different Associated Character Properties sets on save. * original document has: \rtlch\fcs1 \ab\af39\afs36 \ltrch\fcs0 \b\fs36\cf17\lang1033\f43 * saved document has: \rtlch\cf17\b\dbch\ab\af14\afs36 \ltrch\loch\fs36\lang1033\loch\f6\hich\af6 * bold properties are written for the \rtlch section but not inside \ltrch section
Fixed now: * properly handling \rtlch and \ltrch as other runs in RTF import * ouput of the \rtlch\ltrch and \ltrch\rtlch with correct order of <aprops> which should follow first master keyword (\ltrch or \rtlch) * associated font/character properties will be always outputed in the first part of the \ltrch\rtlch run Output before fix: \af5\ltrch \rtlch - output with patch: \ltrch\af5 \rtlch Further background details on the fix: * \rtlch, \ltrch should be placed before their properties * do not mix associated and normal character properties in output * do not output empty "\rtlch \ltrch", "\ltrch \rtlch" pairs. * handle associated character properties runs instead of handling separately their parts without order of them
Serge Krot committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/+/fd95fb975b754d71d3750e85431a4e596a40e659%5E%21 tdf#125719 sw: rtf: refactor associated character properties It will be available in 6.4.0. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Serge Krot committed a patch related to this issue. It has been pushed to "libreoffice-6-3": https://git.libreoffice.org/core/+/3c1f6fc029ab8ff9129f2316a3d7c81bc7b69125%5E%21 tdf#125719 sw: rtf: refactor associated character properties It will be available in 6.3.0.1. The patch should be included in the daily builds available at https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: https://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.