[Libreoffice-commits] core.git: include/vcl vcl/source
Pranav Kant
pranavk at collabora.co.uk
Thu Nov 9 09:24:29 UTC 2017
include/vcl/dialog.hxx | 1 +
vcl/source/window/dialog.cxx | 11 +++++++++++
2 files changed, 12 insertions(+)
New commits:
commit 1363a12203591a56e8ba592fc34cc40da30e22ef
Author: Pranav Kant <pranavk at collabora.co.uk>
Date: Thu Nov 9 14:43:46 2017 +0530
lokdialog: Invalidate-all when size is changed
Change-Id: Ic96fab62c1525154a60c0fa84e2a12ccfad15ae2
diff --git a/include/vcl/dialog.hxx b/include/vcl/dialog.hxx
index d28ff0ac6d64..92d9138e3e8f 100644
--- a/include/vcl/dialog.hxx
+++ b/include/vcl/dialog.hxx
@@ -173,6 +173,7 @@ public:
bool IsModalInputMode() const { return mbModalMode; }
void GrabFocusToFirstControl();
+ virtual void Resize() override;
};
class VCL_DLLPUBLIC ModelessDialog : public Dialog
diff --git a/vcl/source/window/dialog.cxx b/vcl/source/window/dialog.cxx
index 0adb46c59d07..720153d5c7d2 100644
--- a/vcl/source/window/dialog.cxx
+++ b/vcl/source/window/dialog.cxx
@@ -1324,6 +1324,17 @@ void Dialog::queue_resize(StateChangedType eReason)
SystemWindow::queue_resize(eReason);
}
+void Dialog::Resize()
+{
+ SystemWindow::Resize();
+
+ // inform LOK clients
+ if (!comphelper::LibreOfficeKit::isDialogPainting() && mpDialogRenderable && !maID.isEmpty())
+ {
+ mpDialogRenderable->notifyDialog(maID, "invalidate", nullptr);
+ }
+}
+
bool Dialog::set_property(const OString &rKey, const OUString &rValue)
{
if (rKey == "border-width")
More information about the Libreoffice-commits
mailing list