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:
cxl 2017-11-30 14:52:40 +00:00
parent 95c7c80057
commit 2db388f75b

View file

@ -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)