From 6a24155269d26d1a31a88158154bb4db0c933871 Mon Sep 17 00:00:00 2001 From: Justin Luth Date: Sat, 9 Sep 2023 09:15:48 -0400 Subject: 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 Tested-by: Jenkins Reviewed-by: Miklos Vajna --- sw/source/core/frmedt/fews.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); } -- cgit