Skip to content
This repository has been archived by the owner on Oct 18, 2021. It is now read-only.

Commit

Permalink
Fixed gradient bug
Browse files Browse the repository at this point in the history
  • Loading branch information
avarayr committed Mar 9, 2016
1 parent 8aeb033 commit 4a4530a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions SublimeOverlay/GradientPanel.cs
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,8 @@ public GradientPanel()
}
protected override void OnPaintBackground(PaintEventArgs e)
{
if (ClientRectangle.Width == 0 || ClientRectangle.Height == 0)
return;
using (var brush = new LinearGradientBrush(this.ClientRectangle,
GradientFirstColor, GradientSecondColor, LinearGradientMode.Vertical))
{
Expand Down

0 comments on commit 4a4530a

Please sign in to comment.