Skip to content

Commit

Permalink
Fixed small bug from last commit
Browse files Browse the repository at this point in the history
  • Loading branch information
dahall committed Apr 6, 2021
1 parent 2514e39 commit eab19cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions Windows.Forms/Extensions/GraphicsExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ public static void CalcImageAndTextBounds(Rectangle bounds, string text, Font fo
contentRectangle = new Rectangle(contentLocation, contentSize);
}

actualImageBounds = Rectangle.Empty;
actualImageBounds = System.Drawing.Rectangle.Empty;
if (image != null)
{
// Get ActualImageBounds
Expand Down Expand Up @@ -152,7 +152,7 @@ public static void CalcImageAndTextBounds(Rectangle bounds, string text, Font fo
}

// Get ActualTextBounds
actualTextBounds = Rectangle.Empty;
actualTextBounds = System.Drawing.Rectangle.Empty;
if (!(text?.Length > 0)) return;

actualTextBounds = new Rectangle(Point.Empty, actualTextSize);
Expand Down

0 comments on commit eab19cc

Please sign in to comment.