Reproducible graphics exception when modifying arrows

Description

None

Environment

Video reproduction below. Pressing shift while modifying this arrow creates a corrupt arrow which throws execptions when selected.

Active Arrow tool

Draw an Arrow pointed exactly up by using shift key.

Begin modify the top end of Arrow so it is slightly tilted.

Before releasing mouse, press shift to snap back to vertical. Release mouse.

Arrow is corrupt. Maybe infinitely long or 0 length?

Arrow Snap Bug.gif

 

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2024-04-17 15:40:54 -04:00
OS: unknown (x64) 10.0 build 22631 revision 0
GDI object count: 299
User object count: 337

Exception: System.Runtime.InteropServices.ExternalException
Message: A generic error occurred in GDI+.

ErrorCode: 0x80004005

Stack:
at System.Drawing.Drawing2D.GraphicsPath.IsOutlineVisible(Point pt, Pen pen, Graphics graphics)
at Greenshot.Drawing.ArrowContainer.ClickableAt(Int32 x, Int32 y)
at Greenshot.Drawing.DrawableContainerList.ClickableElementAt(Int32 x, Int32 y)
at Greenshot.Drawing.Surface.SurfaceMouseDown(Object sender, MouseEventArgs e)
at System.Windows.Forms.Control.OnMouseDown(MouseEventArgs e)
at System.Windows.Forms.Control.WmMouseDown(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Attachments

1
  • 17 Apr 2024, 07:47 PM

Activity

Details

Assignee

Reporter

Affects versions

Priority

Created April 17, 2024 at 7:47 PM
Updated April 17, 2024 at 7:47 PM

Flag notifications