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

Michael Weghorn <[email protected]> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |[email protected]

--- Comment #2 from Michael Weghorn <[email protected]> ---
Win bibisect repo for 7.4 shows that this started with


commit 42448f48bb48a13d6618a181b12840db6d85c574
Author: Michael Stahl
Date:   Thu Dec 16 13:36:46 2021 +0100

    tdf#144565 sw_redlinehide: fix mailmerge when flys anchored at last node

    The InsertPageBreak() calls SplitNode() which is not ideal as the flys
    anchored at the last node of the document may end up anchored to the
    newly inserted node and this one will be removed again a bit further on:
      GetNodes().Delete( aDelIdx, iDelNodes );

    ... which is what crashes, when the SwNodeIndex of the anchor is moved
    hard to a different node, which causes inconsistencies such as:

    sw/source/core/text/txtfrm.cxx:1263: TextFrameIndex
SwTextFrame::MapModelToView(const SwTextNode*, sal_Int32) const: Assertion
`static_cast<SwTextNode*>(const_cast<sw::BroadcastingModify*>(SwFrame::GetDep()))
== pNode' failed.

    Instead, always use AppendTextNode() and then set the break item
    directly, which even simplifies the code.

    (reportedly a regression from 166b5010b402a41b192b1659093a25acf9065fd9
     although i wasn't able to find an earlier version that didn't crash
     in some way)

    Change-Id: I4cac74fc86fc505f62b14cf0d7a7f9689c7402ba
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/126921
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl



Adding CC: to Michael Stahl

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

Reply via email to