sw/source/core/layout/frmtool.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 15bb6eede17160a84674ce4911bd0fdcee3c7747
Author:     Michael Stahl <michael.st...@allotropia.de>
AuthorDate: Thu Dec 23 19:17:24 2021 +0100
Commit:     Thorsten Behrens <thorsten.behr...@allotropia.de>
CommitDate: Fri Dec 24 01:45:06 2021 +0100

    tdf#138743 sw_redlinehide: delete FlyFrames when hiding tracked changes
    
    Cannot remember why but when RemoveHiddenObjsOfNode() was added in
    commit 464ef392f901c6e2ad3d32df8b039f2226073cf4 only as-char draw shapes
    were removed from the draw page, but as-char fly frames remained.
    
    For these only a barely visible border is painted sometimes, but the
    problem is they remain as a mouse click target, not sure how i didn't
    notice this earlier.
    
    Somehow image painting is wonky on current master, works fine on 7.1.
    
    Change-Id: Ie4e20f6a399daadda1badf155ba510445394f5e6
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127366
    Tested-by: Jenkins
    Reviewed-by: Michael Stahl <michael.st...@allotropia.de>
    (cherry picked from commit 2954039767e1adab7a65838b61a449b701f244a4)
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/127372
    Reviewed-by: Thorsten Behrens <thorsten.behr...@allotropia.de>

diff --git a/sw/source/core/layout/frmtool.cxx 
b/sw/source/core/layout/frmtool.cxx
index d72820cf3326..357f1f3db1a9 100644
--- a/sw/source/core/layout/frmtool.cxx
+++ b/sw/source/core/layout/frmtool.cxx
@@ -1191,8 +1191,7 @@ void RemoveHiddenObjsOfNode(SwTextNode const& rNode,
     {
         SwFormatAnchor const& rAnchor = pFrameFormat->GetAnchor();
         if (rAnchor.GetAnchorId() == RndStdIds::FLY_AT_CHAR
-            || (rAnchor.GetAnchorId() == RndStdIds::FLY_AS_CHAR
-                && RES_DRAWFRMFMT == pFrameFormat->Which()))
+            || rAnchor.GetAnchorId() == RndStdIds::FLY_AS_CHAR)
         {
             assert(rAnchor.GetContentAnchor()->nNode.GetIndex() == 
rNode.GetIndex());
             if (!IsShown(rNode.GetIndex(), rAnchor, pIter, pEnd, pFirstNode, 
pLastNode))

Reply via email to