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
This commit is contained in:
Tor Lillqvist
2016-03-11 15:07:50 +02:00
parent 235411c9d4
commit 67ef33f914

View File

@@ -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++)