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:
@@ -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);
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user