SetPixel should NEVER throw an exception for which the caller isn't at fault

This commit is contained in:
Michael Becker 2020-03-16 13:27:32 -04:00
parent ec79785511
commit 87e6eb8269
No known key found for this signature in database
GPG Key ID: 389DFF5D73781A12

View File

@ -31,6 +31,7 @@ namespace UniversalEditor.ObjectModels.Multimedia.Picture
SetPixel(color, (int)lastAddedLocation.X, (int)lastAddedLocation.Y);
lastAddedLocation.X++;
}
[System.Diagnostics.DebuggerNonUserCode]
public void SetPixel(Color color, int x, int y)
{
if (x >= mvarWidth || y >= mvarHeight)