Skip to content
This repository has been archived by the owner on Aug 15, 2022. It is now read-only.

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cronoxyd committed Nov 15, 2020
1 parent 4f4a491 commit 02c1ffc
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions DarkUI/Controls/DarkComboBox.cs
Original file line number Diff line number Diff line change
Expand Up @@ -104,6 +104,8 @@ protected override void OnResize(EventArgs e)

private void PaintCombobox()
{
if (ClientRectangle.Width <= 0 || ClientRectangle.Height <= 0)
_buffer = new Bitmap(1, 1);
if (_buffer == null)
_buffer = new Bitmap(ClientRectangle.Width, ClientRectangle.Height);

Expand Down

0 comments on commit 02c1ffc

Please sign in to comment.