Map printing bug

Discussions about Diving Log 6.0 - questions and hints
Post Reply
scubal
Posts: 38
Joined: Mon Jan 17, 2011 10:28

Map printing bug

Post by scubal »

DL 6.0.16 (windows 10)
I'd like to print out a world map showing where I have dived.
Map displays fine on screen but when it tries to print it crashes with unhandled exception (*see below).
Is this known bug?

------------------------------------------------

See the end of this message for details on invoking
just-in-time (JIT) debugging instead of this dialog box.

************** Exception Text **************
System.ArgumentException: Parameter is not valid.
at System.Drawing.Image.get_Width()
at Divinglog.Tools.Graphic.GenerateThumbnail(Image Original, Size MaxSize, Boolean AllowExpand)
at Divinglog.Tools.Graphic.GenerateThumbnail(Image Original, Int32 MaxWidth, Int32 MaxHeight)
at Divinglog.Printing.PrintImage.PD_PrintPage(Object sender, PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument.OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintDocument._OnPrintPage(PrintPageEventArgs e)
at System.Drawing.Printing.PrintController.PrintLoop(PrintDocument document)
at System.Drawing.Printing.PrintController.Print(PrintDocument document)
at System.Drawing.Printing.PrintDocument.Print()
at System.Windows.Forms.PrintPreviewDialog.OnprintToolStripButtonClick(Object sender, EventArgs e)
at System.Windows.Forms.ToolStripItem.RaiseEvent(Object key, EventArgs e)
at System.Windows.Forms.ToolStripButton.OnClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleClick(EventArgs e)
at System.Windows.Forms.ToolStripItem.HandleMouseUp(MouseEventArgs e)
at System.Windows.Forms.ToolStripItem.FireEventInteractive(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStripItem.FireEvent(EventArgs e, ToolStripItemEventType met)
at System.Windows.Forms.ToolStrip.OnMouseUp(MouseEventArgs mea)
at System.Windows.Forms.Control.WmMouseUp(Message& m, MouseButtons button, Int32 clicks)
at System.Windows.Forms.Control.WndProc(Message& m)
at System.Windows.Forms.ScrollableControl.WndProc(Message& m)
at System.Windows.Forms.ToolStrip.WndProc(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.OnMessage(Message& m)
at System.Windows.Forms.Control.ControlNativeWindow.WndProc(Message& m)
at System.Windows.Forms.NativeWindow.Callback(IntPtr hWnd, Int32 msg, IntPtr wparam, IntPtr lparam)
...

divinglog
Site Admin
Posts: 5164
Joined: Sat Feb 08, 2003 21:02
Location: Coburg
Contact:

Re: Map printing bug

Post by divinglog »

Thank you for reporting this bug, I can reproduce that. I'll look into this and fix it in the next update. In the meantime you can use the "Save image" function and then print the image of the map.

Post Reply