vcl/win/gdi/winlayout.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit 67ef33f914eae7d9752cd7d354e76210f33f59f0 Author: Tor Lillqvist <[email protected]> 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++) _______________________________________________ Libreoffice-commits mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
