Arrays Names and ArgbValues were not in line
Number of elements in Names and ArgbValues must be the same. Otherwise an IndexOutOfRangeException will be thrown either in ArgbByName or NameByArgb.
This commit is contained in:
Родитель
e52a39108e
Коммит
d6809aec2f
|
@ -31,11 +31,11 @@
|
|||
//
|
||||
using Foundation;
|
||||
using System.Drawing.Mac;
|
||||
using System.Collections.Generic;
|
||||
|
||||
using System.Collections.Generic;
|
||||
|
||||
namespace System.Drawing {
|
||||
|
||||
internal static partial class KnownColors
|
||||
internal static partial class KnownColors
|
||||
{
|
||||
static internal uint[] ArgbValues = new uint[] {
|
||||
0x00000000, /* 000 - Empty */
|
||||
|
@ -384,6 +384,13 @@ namespace System.Drawing {
|
|||
"WhiteSmoke",
|
||||
"Yellow",
|
||||
"YellowGreen",
|
||||
"ButtonFace",
|
||||
"ButtonHighlight",
|
||||
"ButtonShadow",
|
||||
"GradientActiveCaption",
|
||||
"GradientInactiveCaption",
|
||||
"MenuBar",
|
||||
"MenuHighlight"
|
||||
};
|
||||
|
||||
static Dictionary<String, uint> argbByName = null;
|
||||
|
|
Загрузка…
Ссылка в новой задаче