[Libreoffice-commits] core.git: vcl/win
Tor Lillqvist
tml at collabora.com
Fri Mar 11 13:29:22 UTC 2016
vcl/win/gdi/winlayout.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 67ef33f914eae7d9752cd7d354e76210f33f59f0
Author: Tor Lillqvist <tml at collabora.com>
Date: Fri Mar 11 15:07:50 2016 +0200
Passing a string to a std::ostringstream ctor is tricky
For it to do what one typically wants, also std::ios_base::ate is
needed.
Change-Id: If520c98cbd4d3913b644c2137623c2b7e9c5c708
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 31168bc..ab04e70 100644
--- a/vcl/win/gdi/winlayout.cxx
+++ b/vcl/win/gdi/winlayout.cxx
@@ -179,7 +179,7 @@ void DumpGlyphBitmap(HDC hDC)
SAL_INFO("vcl.gdi.opengl", "Bitmap " << hBitmap << ": " << aBitmap.bmWidth << "x" << aBitmap.bmHeight << ":");
- std::ostringstream sLine("\n");
+ std::ostringstream sLine("\n", std::ios_base::ate);
for (long y = 0; y < aBitmap.bmHeight; y++)
{
for (long x = 0; x < std::min(75l, aBitmap.bmWidth); x++)
More information about the Libreoffice-commits
mailing list