tomboy r1912 - in trunk: . Tomboy



Author: sharm
Date: Fri Feb 29 21:28:22 2008
New Revision: 1912
URL: http://svn.gnome.org/viewvc/tomboy?rev=1912&view=rev

Log:
* Tomboy/NoteBuffer.cs: Ignore erroneously inserted second
  WidgetInsertData (identified by its null TextMark) when inserting
  bugzilla/evolution links int a bulleted list.  Quick fix to resolve
  bug #486551, courtesy of Stefan Cosma.  See bug report for more
  details.

Modified:
   trunk/ChangeLog
   trunk/Tomboy/NoteBuffer.cs

Modified: trunk/Tomboy/NoteBuffer.cs
==============================================================================
--- trunk/Tomboy/NoteBuffer.cs	(original)
+++ trunk/Tomboy/NoteBuffer.cs	Fri Feb 29 21:28:22 2008
@@ -652,6 +652,10 @@
 		public bool RunWidgetQueue ()
 		{
 			foreach (WidgetInsertData data in widgetQueue) {
+				// HACK: This is a quick fix for bug #486551
+				if (data.position == null)
+					continue;
+				
 				NoteBuffer buffer = data.buffer as NoteBuffer;
 				Gtk.TextIter iter = buffer.GetIterAtMark (data.position);
 				Gtk.TextMark location = data.position;



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]