Skip to content

Commit

Permalink
attempt to catch exception for Crop tool
Browse files Browse the repository at this point in the history
  • Loading branch information
d2phap committed Jan 30, 2024
1 parent b223683 commit 1a3d842
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions Source/ImageGlass/Tools/FrmCrop.cs
Original file line number Diff line number Diff line change
Expand Up @@ -140,9 +140,15 @@ protected override int OnUpdateHeight(bool performUpdate = true)
var baseHeight = base.OnUpdateHeight(false);

// calculate form height
var contentHeight = TableTop.Height + TableTop.Padding.Vertical
+ TableBottom.Height;
var formHeight = contentHeight + baseHeight;
var formHeight = baseHeight;

try
{
var contentHeight = TableTop.Height + TableTop.Padding.Vertical
+ TableBottom.Height;
formHeight = contentHeight + baseHeight;
}
catch { }

if (performUpdate)
{
Expand Down

0 comments on commit 1a3d842

Please sign in to comment.