-
Notifications
You must be signed in to change notification settings - Fork 101
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
颜色转换数字越界 #43
Comments
Int32是4字节,TAlphaColor也是4字节 |
UI.Utils.pas中的HtmlColorToColor方法中,如果颜色指定为color=''#303030''或color=''303030''时,会分别调用到调用下面两行语句 |
另外这个错误只有在动态赋值的时候才会出现,设计期直接指定的话运行没问题 |
|
这就奇怪了。我也经常这样赋值,没遇到过错误 |
那就不清楚了,要不就是delphi版本的问题,要不就是编译开关的问题,我这边是xe11,编译开关没改过 |
在UI.Util.pas文件中,涉及到16进制颜色值转换TAlphaColor方法中,应该用StrToInt64Def而不是StrToIntDef,24位颜色值前面加上FF之后,会超出Int32的最大值,导致出错软件崩溃
The text was updated successfully, but these errors were encountered: