diff options
author | Tamás Zolnai <tamas.zolnai@collabora.com> | 2018-05-18 13:31:34 +0200 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2018-06-28 10:22:21 +0200 |
commit | 063f11bc96658a70d92c8bfc410f902fdd2e8453 (patch) | |
tree | 10a4e6f2e5aaea93c02d843efa1f3fb1d76f12e0 /vcl | |
parent | 99c1e17acde773c517071776ca5d871edb09edcb (diff) |
lok: Use GetSizePixel() here which calculates also with border
Fixes the bug that one pixel is not invalidated of a preview window
on the dialogs.
For example: Character properties dialog -> Highlighting preview or
Character properties dialog -> Font preview
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>
(cherry picked from commit 7a77d927c88a04ee51ceb765c77e725a67a1d1a7)
Change-Id: I6f96abdd4d85c8dfed8bf83e1b2a30192a54bd2d
Reviewed-on: https://gerrit.libreoffice.org/54536
Reviewed-by: Andras Timar <andras.timar@collabora.com>
Tested-by: Andras Timar <andras.timar@collabora.com>
Diffstat (limited to 'vcl')
-rw-r--r-- | vcl/source/window/paint.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index b9ac88de33c5..dd3323fa2b60 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1224,7 +1224,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(), GetOutOffYPixel()), Size(GetOutputWidthPixel(), GetOutputHeightPixel())); + const tools::Rectangle aRect(Point(GetOutOffXPixel(), GetOutOffYPixel()), GetSizePixel()); pParent->LogicInvalidate(&aRect); } } |