diff options
author | Justin Luth <justin.luth@collabora.com> | 2023-09-09 09:15:48 -0400 |
---|---|---|
committer | Miklos Vajna <vmiklos@collabora.com> | 2023-09-11 08:31:36 +0200 |
commit | 6a24155269d26d1a31a88158154bb4db0c933871 (patch) | |
tree | 1ff8dd9bba1d0995a5a313b060edef23d3e70559 | |
parent | be9d7bee88eff89c0d361f23abb447ac2086c3b4 (diff) |
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 <jluth@mail.com>
Tested-by: Jenkins
Reviewed-by: Miklos Vajna <vmiklos@collabora.com>
-rw-r--r-- | sw/source/core/frmedt/fews.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
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(); } |