summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--vcl/win/gdi/winlayout.cxx5
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;
}