diff options
author | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-15 11:38:26 +0200 |
---|---|---|
committer | Xisco Fauli <xiscofauli@libreoffice.org> | 2021-04-15 12:52:36 +0200 |
commit | a080727522e04b8e1fc1641c892af9227d2e8dad (patch) | |
tree | f4b9859ae4ed87858643ef98c0320fbab1dcba37 /sd | |
parent | 895e0107a37624c8c0d800f1e427507e605bfbab (diff) |
sd: improve output when asserting colors
Change-Id: I1d36ec286ee3c94f37bd0f0050927177f80cbdb8
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/114134
Tested-by: Jenkins
Reviewed-by: Xisco Fauli <xiscofauli@libreoffice.org>
Diffstat (limited to 'sd')
-rw-r--r-- | sd/qa/unit/sdmodeltestbase.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sd/qa/unit/sdmodeltestbase.hxx b/sd/qa/unit/sdmodeltestbase.hxx index 8f8110b16e2f..74e25b1f1aba 100644 --- a/sd/qa/unit/sdmodeltestbase.hxx +++ b/sd/qa/unit/sdmodeltestbase.hxx @@ -479,7 +479,10 @@ template<> struct assertion_traits<Color> static std::string toString( const Color& c ) { OStringStream ost; - ost << static_cast<sal_uInt32>(c); + ost << "Color: R:" << static_cast<int>(c.GetRed()) + << " G:" << static_cast<int>(c.GetGreen()) + << " B:" << static_cast<int>(c.GetBlue()) + << " A:" << static_cast<int>(255 - c.GetAlpha()); return ost.str(); } }; |