diff options
author | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-02-14 22:09:00 +0100 |
---|---|---|
committer | Tomaž Vajngerl <tomaz.vajngerl@collabora.co.uk> | 2019-02-15 19:43:40 +0100 |
commit | bc99e56a3173f99298a590232bfa9e9ff0125f61 (patch) | |
tree | e2b7e3527fb6249118aa71e26b7fd2c3ec3617aa /include/vcl | |
parent | f54ed990f49dce9eecec1916c8beaa4280bfbcf1 (diff) |
BitmapColor string representation - fix proper padding
Change-Id: I42727152e71b2dce4c2b5ce71f9a54464388a7fb
Diffstat (limited to 'include/vcl')
-rw-r--r-- | include/vcl/salbtype.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/include/vcl/salbtype.hxx b/include/vcl/salbtype.hxx index ec953d209030..8a0f8bb6e424 100644 --- a/include/vcl/salbtype.hxx +++ b/include/vcl/salbtype.hxx @@ -133,7 +133,10 @@ public: template<typename charT, typename traits> inline std::basic_ostream<charT, traits>& operator <<(std::basic_ostream<charT, traits>& rStream, const BitmapColor& rColor) { - return rStream << "#(" << std::hex << std::setfill ('0') << std::setw(2) << static_cast<int>(rColor.GetRed()) << static_cast<int>(rColor.GetGreen()) << static_cast<int>(rColor.GetBlueOrIndex()) << static_cast<int>(rColor.GetAlpha()) << ")"; + return rStream << "#(" << std::hex << std::setfill ('0') << std::setw(2) << static_cast<int>(rColor.GetRed()) + << std::setw(2) << static_cast<int>(rColor.GetGreen()) + << std::setw(2) << static_cast<int>(rColor.GetBlueOrIndex()) + << std::setw(2) << static_cast<int>(rColor.GetAlpha()) << ")"; } class VCL_DLLPUBLIC BitmapPalette |