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

--- Comment #2 from Telesto <[email protected]> ---
Created attachment 177423
  --> https://bugs.documentfoundation.org/attachment.cgi?id=177423&action=edit
Bibisect log

Losing Character DF when applying Paragraph Style, bisected to:

    commit 3c0805e1f4f4d14e92c7e655d59c87de5c207e48
    Author:     Miklos Vajna <[email protected]>
    AuthorDate: Thu May 14 11:34:33 2015 +0200
    Commit:     Miklos Vajna <[email protected]>
    CommitDate: Thu May 14 11:39:16 2015 +0200

        tdf#86639 SwEditShell: when setting para style, reset char attrs if
needed

        The old internal RTF filter used to call SwTxtNode::SetAttr() without
        setting SetAttrMode::NOFORMATATTR, so character attributes which cover
        the whole node got converted to paragraph attributes.  The new UNO
        filter goes through SwXText::insertTextPortion(), which sets
        SetAttrMode::NOFORMATATTR, so this doesn't happen. The result of this
is
        that when the UI sets a new paragraph style on the text node, then such
        character attributes are no longer removed.

        Given that in RTF you can't really have character properties on a
        paragraph, going back to the document model produced by the old
internal
        filter doesn't sound like the good direction -- not to mention that
        changing SwXText::insertTextPortion() this way would be an implicit API
        change.

        Fix the problem by tweaking SwEditShell::SetTxtFmtColl() instead, so
        that it removes these full-text-node character attributes, too. The
        logic in SwTxtNode::RstTxtAttr() can be extended later if necessary to
        delete more attributes, but to be on the safe side, just handle the
bare
        minimum necessary to fix the problem for now.

        Change-Id: I5faa3226fc0f9c18e005da185fe0830d8c393256

https://cgit.freedesktop.org/libreoffice/core/commit/?id=3c0805e1f4f4d14e92c7e655d59c87de5c207e4

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

Reply via email to