Fixes broken color to string conversion in UI. Fixes #939.
This was SVN commit r10164.
This commit is contained in:
parent
65f3126f04
commit
ec6b9dfc28
@ -205,7 +205,7 @@ function initMapSizes()
|
||||
function iColorToString(color)
|
||||
{
|
||||
var string = "0 0 0";
|
||||
if (color && color.r && color.g && color.b)
|
||||
if (color && ("r" in color) && ("g" in color) && ("b" in color))
|
||||
string = color.r + " " + color.g + " " + color.b;
|
||||
|
||||
return string;
|
||||
|
Loading…
Reference in New Issue
Block a user