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

New commits:
commit 1cccf64c10d1ed6bd7c10422e57d2adfa5f9ca26
Author: Pranav Kant <[email protected]>
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 <[email protected]>
    Tested-by: Jan Holesovsky <[email protected]>

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
_______________________________________________
Libreoffice-commits mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits

Reply via email to