From cee3840c01292dc3ef98d996d00f57f43eb35e9e Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Wed, 16 May 2018 17:36:36 +0200 Subject: lok: Always specify the invalidate rectangle explicitely MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit It will be needed for a later change in online code. Change-Id: Ic8f898b78ccaaaec849a1894b5e70fb730d70d6d Reviewed-on: https://gerrit.libreoffice.org/54443 Tested-by: Jenkins Reviewed-by: Tamás Zolnai --- vcl/source/window/floatwin.cxx | 5 ++++- vcl/source/window/paint.cxx | 5 +++++ 2 files changed, 9 insertions(+), 1 deletion(-) (limited to 'vcl') diff --git a/vcl/source/window/floatwin.cxx b/vcl/source/window/floatwin.cxx index 19c8ed1b5748..f52aafeac5ab 100644 --- a/vcl/source/window/floatwin.cxx +++ b/vcl/source/window/floatwin.cxx @@ -594,8 +594,11 @@ void FloatingWindow::LogicInvalidate(const tools::Rectangle* /*pRectangle*/) { if (VclPtr pParent = GetParentWithLOKNotifier()) { + std::vector aPayload; + const tools::Rectangle aRect(Point(0,0), Size(GetSizePixel().Width()+1, GetSizePixel().Height()+1)); + aPayload.push_back(std::make_pair(OString("rectangle"), aRect.toString())); const vcl::ILibreOfficeKitNotifier* pNotifier = pParent->GetLOKNotifier(); - pNotifier->notifyWindow(GetLOKWindowId(), "invalidate"); + pNotifier->notifyWindow(GetLOKWindowId(), "invalidate", aPayload); } } diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index b4e814b158c1..d8243588496b 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1198,6 +1198,11 @@ void Window::LogicInvalidate(const tools::Rectangle* pRectangle) std::vector aPayload; if (pRectangle) aPayload.push_back(std::make_pair(OString("rectangle"), pRectangle->toString())); + else + { + const tools::Rectangle aRect(Point(0, 0), GetSizePixel()); + aPayload.push_back(std::make_pair(OString("rectangle"), aRect.toString())); + } pNotifier->notifyWindow(GetLOKWindowId(), "invalidate", aPayload); } -- cgit