summaryrefslogtreecommitdiff
path: root/vcl/win
diff options
context:
space:
mode:
authorTor Lillqvist <tml@collabora.com>2016-03-11 15:07:50 +0200
committerTor Lillqvist <tml@collabora.com>2016-03-11 15:28:41 +0200
commit67ef33f914eae7d9752cd7d354e76210f33f59f0 (patch)
tree2acc2aaad61f9bb17e1f54874cae70c812d4f34e /vcl/win
parent235411c9d47ecba88e46d859ea93bcecefb0c46e (diff)
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
Diffstat (limited to 'vcl/win')
-rw-r--r--vcl/win/gdi/winlayout.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/vcl/win/gdi/winlayout.cxx b/vcl/win/gdi/winlayout.cxx
index 31168bc78909..ab04e70c97fe 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++)