[Libreoffice-commits] core.git: Branch 'distro/collabora/cp-5.3' - vcl/source

Pranav Kant pranavk at collabora.co.uk
Thu Mar 15 17:34:49 UTC 2018


 vcl/source/window/window2.cxx |    6 ++++++
 1 file changed, 6 insertions(+)

New commits:
commit 1cccf64c10d1ed6bd7c10422e57d2adfa5f9ca26
Author: Pranav Kant <pranavk at collabora.co.uk>
Date:   Wed Mar 14 14:55:05 2018 +0530

    lokdialog: Invalidate upon window size change
    
    This problem can be seen with some of the dialogs like chart dialogs
    where not all of the area which should be invalidated is invalidated.
    The reason being that their container gets resized but not
    lok-invalidated.
    
    Change-Id: I12eb68e8644ca67b2666badb7b772b92a145c624
    (cherry picked from commit 73fa910577ec99cf6331123d2fedffa5687b7e6f)
    Reviewed-on: https://gerrit.libreoffice.org/51265
    Reviewed-by: Jan Holesovsky <kendy at collabora.com>
    Tested-by: Jan Holesovsky <kendy at collabora.com>

diff --git a/vcl/source/window/window2.cxx b/vcl/source/window/window2.cxx
index 8e3d2dc0d212..e45fee287fd0 100644
--- a/vcl/source/window/window2.cxx
+++ b/vcl/source/window/window2.cxx
@@ -1396,6 +1396,12 @@ void Window::queue_resize(StateChangedType eReason)
         if (pBorderWindow)
             pBorderWindow->Resize();
     }
+
+    if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier())
+    {
+        if (GetParentDialog())
+            LogicInvalidate(nullptr);
+    }
 }
 
 namespace


More information about the Libreoffice-commits mailing list