[Libreoffice-bugs] [Bug 131785] LIST NUMBER: Different behaviour when using Font Colour and Highlight Colour

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Wed May 5 07:16:37 UTC 2021


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

Justin L <jluth at mail.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
            Version|6.4.2.2 release             |Inherited From OOo

--- Comment #12 from Justin L <jluth at mail.com> ---
Already happens in bibisect-43all with LO 3.5. Probably inherit from OOo.

This sounds so much like bug 114799, but none of that code has any impact here. 
However, avoiding UNDERLINE is here.

Ahh, here it is. It is the same SetDiffFnt issue as DOCX faced.
txtfld.cxx's SwTextFormatter::NewNumberPortion

    // Apply the explicit attributes from the character style
    // associated with the numbering to the new bullet font.
    if( pFormat )
+   {
+   // SetDiffFnt resets the background color (why?),
+   // so capture it and re-apply if it had a non-overridden value,.
+       const std::optional<Color> oFontBackColor = pNumFnt->GetBackColor();
        pNumFnt->SetDiffFnt( pFormat, pIDSA );
+       if (oFontBackColor && !pFormat->HasItem(RES_CHRATR_BACKGROUND))
+           pNumFnt->SetBackColor(oFontBackColor);
+   }

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210505/9bb7d2fe/attachment-0001.htm>


More information about the Libreoffice-bugs mailing list