Fix Unicode characters encoding (we've to use utf-8) in Color::toHumanReadableString() and BrushAngleField()

This commit is contained in:
David Capello 2013-11-23 18:01:42 -03:00
parent ad0b28bd63
commit 033aad9d28
2 changed files with 3 additions and 3 deletions

View File

@ -227,7 +227,7 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS
} }
else { else {
result << "HSB " result << "HSB "
<< m_value.hsv.h << "\xB0 " << m_value.hsv.h << "\xc2\xb0 "
<< m_value.hsv.s << " " << m_value.hsv.s << " "
<< m_value.hsv.v; << m_value.hsv.v;
@ -287,7 +287,7 @@ std::string Color::toHumanReadableString(PixelFormat pixelFormat, HumanReadableS
result << "Gry-" << getGray(); result << "Gry-" << getGray();
} }
else { else {
result << m_value.hsv.h << "\xB0" result << m_value.hsv.h << "\xc2\xb0"
<< m_value.hsv.s << "," << m_value.hsv.s << ","
<< m_value.hsv.v; << m_value.hsv.v;
} }

View File

@ -214,7 +214,7 @@ public:
BrushAngleField(BrushTypeField* brushType) BrushAngleField(BrushTypeField* brushType)
: IntEntry(0, 180) : IntEntry(0, 180)
, m_brushType(brushType) { , m_brushType(brushType) {
setSuffix("\xB0"); setSuffix("\xc2\xb0");
} }
protected: protected: