Skip to content

Commit

Permalink
added index 257 for color
Browse files Browse the repository at this point in the history
  • Loading branch information
DomCR committed Oct 26, 2023
1 parent a070b6e commit fbd3c03
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion ACadSharp/Color.cs
Original file line number Diff line number Diff line change
Expand Up @@ -339,7 +339,7 @@ public bool IsTrueColor
public Color(short index)
{
if (index < 0 || index > 257)
throw new ArgumentOutOfRangeException(nameof(index), "True index must be a value between 0 and 256.");
throw new ArgumentOutOfRangeException(nameof(index), "True index must be a value between 0 and 257.");

this._color = index;
}
Expand Down

0 comments on commit fbd3c03

Please sign in to comment.