We're updating the issue view to help you get more done. 

Crash when using a crop tool after changing icon size in Preferences

Description

How to reproduce:
1. Press Ctrl+PrtSc
2. In the popup menu choose "Open in image editor".
3. In the editor go to Edit -> Preferences and change icons size in General tab.
4. Select Crop tool
5. Select any region of the image (I selected a small one).
Boom.

Version: 1.2.10.6

As a side note, this version is NOT listed in "Affects version" dropdown. Only an older 1.2.9.112 is there.

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit) .NET runtime version: 4.0.30319.42000+ Time: 2019-05-17 14:24:29 +02:00 OS: unknown (x64) 10.0 build 17134 revision 0 GDI object count: 175 User object count: 87 Exception: System.ArgumentException Message: Parameter is not valid. Stack: at System.Drawing.Image.get_Width() at System.Drawing.Image.get_Size() at System.Windows.Forms.ToolStripRenderer.CreateDisabledImage(Image normalImage, ImageAttributes imgAttrib) at System.Windows.Forms.ToolStripRenderer.OnRenderItemImage(ToolStripItemImageRenderEventArgs e) at System.Windows.Forms.ToolStripProfessionalRenderer.OnRenderItemImage(ToolStripItemImageRenderEventArgs e) at System.Windows.Forms.ToolStripRenderer.DrawItemImage(ToolStripItemImageRenderEventArgs e) at System.Windows.Forms.ToolStripSplitButton.OnPaint(PaintEventArgs e) at System.Windows.Forms.ToolStripItem.HandlePaint(PaintEventArgs e) at System.Windows.Forms.ToolStrip.OnPaint(PaintEventArgs e) at System.Windows.Forms.Control.PaintWithErrorHandling(PaintEventArgs e, Int16 layer) at System.Windows.Forms.Control.WmPaint(Message& m) at System.Windows.Forms.Control.WndProc(Message& m) at System.Windows.Forms.ToolStrip.WndProc(Message& m) at Greenshot.Controls.ToolStripEx.WndProc(Message& m) at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam) Configuration dump:

Environment

None

Status

Assignee

Unassigned

Reporter

Łukasz Czerwiński (official profile)

Affects versions

None

Components

Priority

Major

Labels