mirror of
https://github.com/ultimatepp/ultimatepp.git
synced 2026-05-16 14:16:09 -06:00
Core: HtmlColor now empty String if Color is Null
git-svn-id: svn://ultimatepp.org/upp/trunk@11507 f0d560ea-af0d-0410-9eb7-867de7ffcac7
This commit is contained in:
parent
95c7c80057
commit
2db388f75b
1 changed files with 1 additions and 1 deletions
|
|
@ -156,7 +156,7 @@ String AsString(const Color& c) {
|
|||
|
||||
String ColorToHtml(Color color)
|
||||
{
|
||||
return Format("#%02X%02X%02X", color.GetR(), color.GetG(), color.GetB());
|
||||
return IsNull(color) ? Null : Format("#%02X%02X%02X", color.GetR(), color.GetG(), color.GetB());
|
||||
}
|
||||
|
||||
static int sCharFilterNoDigit(int c)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue