picoe / Eto

Cross platform GUI framework for desktop and mobile applications in .NET
Other
3.62k stars 328 forks source link

Mac: Fix crash when setting background color on some controls and size changes to zero #2677

Closed cwensley closed 1 month ago

cwensley commented 1 month ago

If a control such as a TextBox, Button, or DropDown is colorized by setting its background color, then subsequently its size is set to zero it would try to call NSImage.UnlockFocus() when it never got locked to begin with causing a crash.