Lengthening vertical line to bottom of image results in blank Greenshot display and error.
Description
Environment
Greenshot Error
Software version: 1.2.10.6-RELEASE-c2414cf0149a1475ea00520effc01b40087c225c (64 bit)
.NET runtime version: 4.0.30319.42000+
Time: 2024-07-08 06:38:39 -07:00
OS: unknown (x64) 10.0 build 19045 revision 0
GDI object count: 107
User object count: 92
Exception: System.OverflowException
Message: Overflow error.
Stack:
at System.Drawing.Graphics.CheckErrorStatus(Int32 status)
at System.Drawing.Graphics.DrawLine(Pen pen, Int32 x1, Int32 y1, Int32 x2, Int32 y2)
at Greenshot.Drawing.LineContainer.Draw(Graphics graphics, RenderMode rm)
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
I drew a vertical blue line, 1 pixel wide, no shadow, within the confines of the image. Copied and pasted the line. Moved the copy over to where I needed it and not near the original. The copied line was not touching the edges of the image. I wanted the bottom of the copied line to meet the bottom of the image so I selected it with the Select tool, clicked on the bottom handle of the copied line, and dragged the line down while holding the left shift key so the line would remain vertically straight. When my cursor moved to below the bottom of the image the screen immediately showed a red outlined box with a red “X” in it (see attached). It then displayed the error pop-up with the request to submit a bug report.