summaryrefslogtreecommitdiffstats
path: root/vcl/win/gdi
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-10 10:11:58 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-10 11:06:46 +0200
commit7f25a5a0736c90a70d58fde6afaddd1ae4c24cb6 (patch)
tree4c05bcbcf803e19163eeaa32d69c9b483f1f12ce /vcl/win/gdi
parentFactor out the calls to FillRect in the DrawTextImpl() implementations (diff)
downloadcore-7f25a5a0736c90a70d58fde6afaddd1ae4c24cb6.tar.gz
core-7f25a5a0736c90a70d58fde6afaddd1ae4c24cb6.zip
Add comment wondering what the code thinks it is doing
Change-Id: Icb135c12b2bc159e0542994bb496b45bf1fdb9e2
Diffstat (limited to 'vcl/win/gdi')
-rw-r--r--vcl/win/gdi/winlayout.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 1b2ca7949f40..691901eac2cf 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -3770,6 +3770,7 @@ bool D2DWriteTextOutRenderer::operator ()(WinLayout const &rLayout, HDC hDC,
bool succeeded = GetDWriteInkBox(*pFontFace, rLayout, lfEmHeight, bounds);
if (pRectToErase)
{
+ // Isn't this equivalent to simply doing: bounds = *pRectToErase ?
bounds.Intersection(*pRectToErase);
bounds.Union(*pRectToErase);
}