flex-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Alex Harui <aha...@adobe.com>
Subject Re: [2/4] git commit: [flex-asjs] [refs/heads/refactor-sprite] - Check for illegal color values
Date Wed, 26 Oct 2016 19:47:19 GMT


On 10/26/16, 8:53 AM, "yishayw@apache.org" <yishayw@apache.org> wrote:
>
>http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/24c2fdfa/frameworks/
>projects/Core/src/main/flex/org/apache/flex/utils/CSSUtils.as
>----------------------------------------------------------------------
>diff --git 
>a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/CSSUtils.as
> 
>b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/CSSUtils.as
>index 22c7efa..977fb09 100644
>--- 
>a/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/CSSUtils.as
>+++ 
>b/frameworks/projects/Core/src/main/flex/org/apache/flex/utils/CSSUtils.as
>@@ -40,6 +40,10 @@ package org.apache.flex.utils
> 		
>         public static function attributeFromColor(value:uint):String
>         {
>+			if(value > 16777215)
>+			{
>+				//rgba -- return rgb notation
>+			}
>             return "#" + StringPadder.pad(value.toString(16),"0",6);
>         }

This is causing a warning in release builds.

-Alex

Mime
View raw message