GNOME Bugzilla – Bug 565567
dia crashes when it fails to create a new object
Last modified: 2009-01-02 14:07:30 UTC
This is meant to track a patch posted earlier on the list. The create_tool can crash if a new DiaObject is not created. This was partially fixed in revision 3716.
Created attachment 125273 [details] [review] the create_tool checks whether an object was created before adding it to the diagram This patch is different from the one posted on the mailing list. Removed an incorrect change in the original patch that replaced a call to g_return_if_fail() with a runtime check.
a slightly modified version got commited. Instead of g_warn_if_reached() - which is only available with very recent GLib - I've used Dia's message_error(). 2009-01-02 Hans Breuer <hans@breuer.org> * app/create_object.c : don't crash if object creation fails (bug #565567, Sameer D. Sahasrabuddhe)