sw/source/core/frmedt/fews.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6a24155269d26d1a31a88158154bb4db0c933871
Author:     Justin Luth <justin.l...@collabora.com>
AuthorDate: Sat Sep 9 09:15:48 2023 -0400
Commit:     Miklos Vajna <vmik...@collabora.com>
CommitDate: Mon Sep 11 08:31:36 2023 +0200

    tdf#137595 sw: current fly might not be selected
    
    Likely true with draw flies.
    
    In the noticed cases, sometimes the fly would be selected
    (and then things worked as expected),
    but if it was not selected or if the fly was changed,
    then it just became the current fly, but not selected.
    
    So, check for both. Since this function already occurs,
    likely this draw/writer synchronization has already
    bitten a lot of cases. Here is one more...
    
    Change-Id: I238027489e6e2cc49e7503c1f93779d1e96dbdcf
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/156786
    Reviewed-by: Justin Luth <jl...@mail.com>
    Tested-by: Jenkins
    Reviewed-by: Miklos Vajna <vmik...@collabora.com>

diff --git a/sw/source/core/frmedt/fews.cxx b/sw/source/core/frmedt/fews.cxx
index cb26f3357225..bce8e2bb9747 100644
--- a/sw/source/core/frmedt/fews.cxx
+++ b/sw/source/core/frmedt/fews.cxx
@@ -725,7 +725,7 @@ void SwFEShell::CalcBoundRect( SwRect& _orRect,
     }
     else
     {
-        pFly = GetSelectedFlyFrame();
+        pFly = GetSelectedOrCurrFlyFrame();
         pFrame = pFly ? pFly->GetAnchorFrame() : GetCurrFrame();
     }
 

Reply via email to