[Monodevelop-patches-list] r1494 - in trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor: . Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Apr 23 19:58:32 EDT 2004
Author: tberman
Date: 2004-04-23 19:58:32 -0400 (Fri, 23 Apr 2004)
New Revision: 1494
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
Log:
bugfix for #57549.
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-04-23 19:00:12 UTC (rev 1493)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/ChangeLog 2004-04-23 23:58:32 UTC (rev 1494)
@@ -1,3 +1,8 @@
+2004-04-23 Todd Berman <tberman at sevenl.net>
+
+ * Gui/SourceEditorBuffer.cs: add a check for a 0 length iter.Char
+ value, closes bug #57549.
+
2004-04-20 Todd Berman <tberman at sevenl.net>
* CodeCompletion/CompletionWindow.cs: Properly attach to the lost focus
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-04-23 19:00:12 UTC (rev 1493)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-04-23 23:58:32 UTC (rev 1494)
@@ -615,6 +615,8 @@
TextIter iter = GetIterAtOffset (offset);
if (iter.Equals (TextIter.Zero))
return ' ';
+ if (iter.Char == null || iter.Char.Length == 0)
+ return ' ';
return iter.Char[0];
}
More information about the Monodevelop-patches-list
mailing list