Add degree symbol in string representation of HSV colors.

This commit is contained in:
David Capello 2011-03-01 22:36:18 -03:00
parent a2eab0553c
commit fd7e95035b

View File

@ -220,7 +220,7 @@ std::string Color::toFormalString(int imgtype, bool long_format) const
} }
else { else {
result << "HSV " result << "HSV "
<< m_value.hsv.h << " " << m_value.hsv.h << "\xB0 "
<< m_value.hsv.s << " " << m_value.hsv.s << " "
<< m_value.hsv.v; << m_value.hsv.v;
@ -281,7 +281,7 @@ std::string Color::toFormalString(int imgtype, bool long_format) const
result << "Gry-" << getGray(); result << "Gry-" << getGray();
} }
else { else {
result << m_value.hsv.h << "," result << m_value.hsv.h << "\xB0"
<< m_value.hsv.s << "," << m_value.hsv.s << ","
<< m_value.hsv.v; << m_value.hsv.v;
} }