sc/source/ui/app/inputwin.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 4f92acefe024a323c0a31ee991eff45eaf24029f Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Tue Apr 13 17:14:57 2021 +0300 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Wed Apr 14 09:15:26 2021 +0200 Early return from ScInputWindow::setPosSizePixel() if no-op This seems to fix https://github.com/CollaboraOnline/online/issues/1988 Change-Id: I5fd826647ce85b7ad2d93085fb0c2fa9db69e745 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114056 Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoff...@gmail.com> Reviewed-by: Michael Meeks <michael.me...@collabora.com> Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114070 Tested-by: Jenkins Reviewed-by: Tor Lillqvist <t...@collabora.com> diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index 2da8fd62746f..67c12839a4ac 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -478,6 +478,10 @@ void ScInputWindow::SetSizePixel( const Size& rNewSize ) void ScInputWindow::setPosSizePixel(tools::Long nX, tools::Long nY, tools::Long nWidth, tools::Long nHeight, PosSizeFlags nFlags) { + if ((!(nFlags & PosSizeFlags::Size) || GetSizePixel() == Size(nWidth, nHeight)) && + (!(nFlags & PosSizeFlags::Pos) || GetPosPixel() == Point(nX, nY))) + return; + ToolBox::setPosSizePixel(nX, nY, nWidth, nHeight, nFlags); if (const vcl::ILibreOfficeKitNotifier* pNotifier = GetLOKNotifier()) { _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits