GNOME Bugzilla – Bug 349183
Crashes when deleting a evolution mail link with backspace
Last modified: 2008-02-26 20:46:32 UTC
Hi, tomboy 0.3.5 with evolution-sharp 0.11.1, evolution 2.6 (eds 1.6, etc) crashes when removing a mail link dragged from evolution into a tomboy note with backspace. Backtrace: Unhandled Exception: System.IndexOutOfRangeException: Array index is out of range. in <0x000cf> Tomboy.EraseAction:CanMerge (EditAction action) in <0x000bc> Tomboy.UndoManager:AddUndoAction (EditAction action) in <0x0008b> Tomboy.UndoManager:OnDeleteRange (System.Object sender, Gtk.DeleteRangeArgs args) in (wrapper delegate-invoke) System.MulticastDelegate:invoke_void_object_DeleteRangeArgs (object,Gtk.DeleteRangeArgs) in <0x001bc> Gtk.TextBuffer:DeleteRangeSignalCallback (IntPtr arg0, Gtk.TextIter arg1, Gtk.TextIter arg2, IntPtr gch) in (wrapper native-to-managed) Gtk.TextBuffer:DeleteRangeSignalCallback (intptr,Gtk.TextIter&,Gtk.TextIter&,intptr) in <0x00000> <unknown method> in (wrapper managed-to-native) Gtk.Application:gtk_main () in <0x00007> Gtk.Application:Run () in <0x00007> Gnome.Program:Run () in <0x00044> Tomboy.Tomboy:StartTrayIcon () in <0x0013f> Tomboy.Tomboy:Main (System.String[] args) Bye Ubuntu Bug: https://launchpad.net/distros/ubuntu/+source/tomboy/+bug/49329
Created attachment 80778 [details] [review] patch for Undo.cs fixing the backspace bug Hi, I tried to fix the problem. When the deletion contains no text, like in this case an E-Mail image, the deletion will now be grouped to the next word.
Sebastian, can you confirm this patch fixes the issue? I'm hitting a prob. getting the evo plugin to compile on my distro (I don't have gmime-sharp). If it does, I'll get it committed to SVN.
Works fine here... please commit :) Also I see no regressions when backspacing normal text...
Thanks Stefan for the patch, and thanks Sebastian for checking it out. It's now committed to SVN.