From aa557a6ec5e8fc9efb029ed357bc08481d9df760 Mon Sep 17 00:00:00 2001 From: Tamás Zolnai Date: Wed, 16 May 2018 18:23:29 +0200 Subject: lok: One pixel is not invalidated on the right side for dialog previews MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit For example: Character dialog -> Highlighting or Character dialog -> Font. Change-Id: I0d1269cdb9d4f482caea27b23ae204351f7dac23 Reviewed-on: https://gerrit.libreoffice.org/54446 Reviewed-by: Tamás Zolnai Tested-by: Tamás Zolnai --- vcl/source/window/paint.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'vcl/source') diff --git a/vcl/source/window/paint.cxx b/vcl/source/window/paint.cxx index 0bd9caf964a3..b4e814b158c1 100644 --- a/vcl/source/window/paint.cxx +++ b/vcl/source/window/paint.cxx @@ -1204,7 +1204,7 @@ void Window::LogicInvalidate(const tools::Rectangle* pRectangle) // Added for dialog items. Pass invalidation to the parent window. else if (VclPtr pParent = GetParentWithLOKNotifier()) { - const tools::Rectangle aRect(Point(GetOutOffXPixel(), GetOutOffYPixel()), Size(GetOutputWidthPixel(), GetOutputHeightPixel())); + const tools::Rectangle aRect(Point(GetOutOffXPixel()+1, GetOutOffYPixel()), Size(GetOutputWidthPixel(), GetOutputHeightPixel())); pParent->LogicInvalidate(&aRect); } } -- cgit