diff options
author | Tor Lillqvist <tml@collabora.com> | 2016-03-11 12:49:03 +0200 |
---|---|---|
committer | Tor Lillqvist <tml@collabora.com> | 2016-03-11 12:49:03 +0200 |
commit | cf69f6630ce63adc11fab387a4bc916ff4b7402c (patch) | |
tree | 021f19dc5119f682df745c6399ac40765171ddc0 | |
parent | b1110d527b26993e03fe6e49b0daa00e89f5ab4a (diff) |
I assume we want to initialise the rectangle with zero left/right/top/bottom
... and not using the default constructor, which sets the right and
bottom coordinates to the magic value -32767. That made the 'bound'
rectangle end up with rather amusing boundaries, like left=-32766,
top=-16, right=-32576, bottom=6.
Change-Id: I46b99b757b6a4f8129f3b2ca43b193e99a54c532
-rw-r--r-- | vcl/win/gdi/winlayout.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx index aec43aa7c195..fa423b518d48 100644 --- a/vcl/win/gdi/winlayout.cxx +++ b/vcl/win/gdi/winlayout.cxx @@ -421,7 +421,7 @@ bool WinFontInstance::AddChunkOfGlyphs(bool bRealGlyphIndices, int nGlyphIndex, pTxt->BindFont(hDC); // Fetch the ink boxes and calculate the size of the atlas. - Rectangle bounds; + Rectangle bounds(0, 0, 0, 0); auto aInkBoxes = pTxt->GetGlyphInkBoxes(aGlyphIndices.data(), aGlyphIndices.data() + nCount); for (auto &box : aInkBoxes) bounds.Union(box + Point(bounds.Right(), 0)); |