lok: Always specify the invalidate rectangle explicitely

It will be needed for a later change in online code.

Change-Id: Ic8f898b78ccaaaec849a1894b5e70fb730d70d6d
Reviewed-on: https://gerrit.libreoffice.org/54443
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com>
This commit is contained in:
Tamás Zolnai
2018-05-16 17:36:36 +02:00
parent f9ecd0f479
commit cee3840c01
2 changed files with 9 additions and 1 deletions

View File

@@ -594,8 +594,11 @@ void FloatingWindow::LogicInvalidate(const tools::Rectangle* /*pRectangle*/)
{
if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier())
{
std::vector<vcl::LOKPayloadItem> 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);
}
}

View File

@@ -1198,6 +1198,11 @@ void Window::LogicInvalidate(const tools::Rectangle* pRectangle)
std::vector<vcl::LOKPayloadItem> 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);
}