Exception while editing screen shot

Description

1) Captured screenshot to Greenshot internal editor
2) Added free hand line
3) Changed color
4) Pressed Ctrl-Z
5) Attempted add a new free hand line, got the following exception:

Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2018-01-28 19:07:13 +01:00
OS: unknown (x64) 10.0 build 16299 revision 0
GDI object count: 105
User object count: 123

Exception: System.ArgumentNullException
Message: Value cannot be null.
Parameter name: path

Stack:
at System.Drawing.Graphics.DrawPath(Pen pen, GraphicsPath path)
at Greenshot.Drawing.FreehandContainer.Draw(Graphics graphics, RenderMode renderMode)
at Greenshot.Drawing.DrawableContainer.DrawContent(Graphics graphics, Bitmap bmp, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.DrawableContainerList.Draw(Graphics g, Bitmap bitmap, RenderMode renderMode, Rectangle clipRectangle)
at Greenshot.Drawing.Surface.SurfacePaint(Object sender, PaintEventArgs paintEventArgs)
at System.Windows.Forms.Control.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.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)

Configuration dump:

Environment

Windows 10 x64

Activity

Show:
Robin Krom
February 11, 2020, 11:32 AM

Found the reason, will be fixed in Greenshot 1.3 which I’m now working on.

Release date not certain, could be in a couple of months.

Assignee

Unassigned

Reporter

Jens Odborg

Affects versions

None

Components

Priority

Major

Labels

Configure