sc/source/ui/app/inputwin.cxx | 4 ++++ 1 file changed, 4 insertions(+)
New commits: commit 0ad467d9abd27197bc5f7f22db5a25b3246e6808 Author: Tor Lillqvist <[email protected]> AuthorDate: Tue Apr 13 17:14:57 2021 +0300 Commit: Michael Meeks <[email protected]> CommitDate: Tue Apr 13 22:04:15 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 <[email protected]> Reviewed-by: Michael Meeks <[email protected]> diff --git a/sc/source/ui/app/inputwin.cxx b/sc/source/ui/app/inputwin.cxx index b718ba7cb7a5..b22c30c42a58 100644 --- a/sc/source/ui/app/inputwin.cxx +++ b/sc/source/ui/app/inputwin.cxx @@ -489,6 +489,10 @@ void ScInputWindow::SetSizePixel( const Size& rNewSize ) void ScInputWindow::setPosSizePixel(long nX, long nY, long nWidth, 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 [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
