summaryrefslogtreecommitdiff
path: root/vcl/source/window/paint.cxx
diff options
context:
space:
mode:
authorTamás Zolnai <tamas.zolnai@collabora.com>2018-05-17 15:24:12 +0200
committerTamás Zolnai <tamas.zolnai@collabora.com>2018-05-18 01:42:41 +0200
commit7a77d927c88a04ee51ceb765c77e725a67a1d1a7 (patch)
tree2d8f0d166fed490059f0a418a5a1032c4657872a /vcl/source/window/paint.cxx
parent8c07193cec5e09d50b20bc5b107da02a7d8f05a5 (diff)
lok: Use GetSizePixel() here which calculates also with border
Change-Id: I6f96abdd4d85c8dfed8bf83e1b2a30192a54bd2d Reviewed-on: https://gerrit.libreoffice.org/54494 Reviewed-by: Tamás Zolnai <tamas.zolnai@collabora.com> Tested-by: Tamás Zolnai <tamas.zolnai@collabora.com>
Diffstat (limited to 'vcl/source/window/paint.cxx')
-rw-r--r--vcl/source/window/paint.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx
index d8243588496b..415429cec76c 100644
--- a/vcl/source/window/paint.cxx
+++ b/vcl/source/window/paint.cxx
@@ -1209,7 +1209,7 @@ void Window::LogicInvalidate(const tools::Rectangle* pRectangle)
// Added for dialog items. Pass invalidation to the parent window.
else if (VclPtr<vcl::Window> pParent = GetParentWithLOKNotifier())
{
- const tools::Rectangle aRect(Point(GetOutOffXPixel()+1, GetOutOffYPixel()), Size(GetOutputWidthPixel(), GetOutputHeightPixel()));
+ const tools::Rectangle aRect(Point(GetOutOffXPixel(), GetOutOffYPixel()), GetSizePixel());
pParent->LogicInvalidate(&aRect);
}
}