diff options
author | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-30 14:42:19 +0200 |
---|---|---|
committer | Khaled Hosny <khaledhosny@eglug.org> | 2016-11-30 14:14:46 +0000 |
commit | ba3e52699bc05911bc1f9e3cbd5d1332902c736a (patch) | |
tree | c5a14487a4443d71e911fb8791bebaca2648dd2f /vcl/win/gdi/winlayout.cxx | |
parent | 568e0394868114457c9dbf7cc1af5bc863ae2a4d (diff) |
tdf#104013: Band aid for overzealous clipping
Change-Id: If66b7a61f4165ea2e504625cde36161adf945a53
Reviewed-on: https://gerrit.libreoffice.org/31418
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Khaled Hosny <khaledhosny@eglug.org>
Diffstat (limited to 'vcl/win/gdi/winlayout.cxx')
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index 19ab9aed8eab..e2ea86581c1a 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -3427,6 +3427,11 @@ bool D2DWriteTextOutRenderer::GetDWriteInkBox(SalLayout const &rLayout, Rectangl rOut.Union(b); } + // The clipping rectangle is sometimes overzealous, add an extra pixel to + // remedy this. + if (!rOut.IsEmpty()) + rOut.expand(1); + return true; } |