Kaydet (Commit) 6aa2a9a2 authored tarafından Tamás Zolnai's avatar Tamás Zolnai Kaydeden (comit) Andras Timar

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/54443Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarTamás Zolnai <tamas.zolnai@collabora.com>
(cherry picked from commit cee3840c)
Reviewed-on: https://gerrit.libreoffice.org/54535Reviewed-by: 's avatarAndras Timar <andras.timar@collabora.com>
Tested-by: 's avatarAndras Timar <andras.timar@collabora.com>
üst 38c95020
......@@ -616,8 +616,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);
}
}
......
......@@ -1218,6 +1218,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);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment