After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 349183 - Crashes when deleting a evolution mail link with backspace
Crashes when deleting a evolution mail link with backspace
Status: RESOLVED FIXED
Product: tomboy
Classification: Applications
Component: General
unspecified
Other Linux
: Normal major
: ---
Assigned To: Tomboy Maintainers
Tomboy Maintainers
Depends on:
Blocks:
 
 
Reported: 2006-07-29 15:50 UTC by Sebastian Dröge (slomo)
Modified: 2008-02-26 20:46 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
patch for Undo.cs fixing the backspace bug (476 bytes, patch)
2007-01-20 22:19 UTC, Stefan Schweizer
none Details | Review

Description Sebastian Dröge (slomo) 2006-07-29 15:50:43 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
Comment 1 Stefan Schweizer 2007-01-20 22:19:41 UTC
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.
Comment 2 Boyd Timothy 2007-01-22 17:54:32 UTC
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.
Comment 3 Sebastian Dröge (slomo) 2007-01-22 18:48:39 UTC
Works fine here... please commit :)
Also I see no regressions when backspacing normal text...
Comment 4 Boyd Timothy 2007-01-22 19:31:05 UTC
Thanks Stefan for the patch, and thanks Sebastian for checking it out.  It's now committed to SVN.