[Monodevelop-patches-list] r728 - trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui
commit-watcher at mono-cvs.ximian.com
commit-watcher at mono-cvs.ximian.com
Fri Jan 30 23:48:03 EST 2004
Author: benm
Date: 2004-01-30 23:48:02 -0500 (Fri, 30 Jan 2004)
New Revision: 728
Modified:
trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
Log:
handle no markers
Modified: trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs
===================================================================
--- trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-01-31 04:05:37 UTC (rev 727)
+++ trunk/MonoDevelop/src/AddIns/DisplayBindings/SourceEditor/Gui/SourceEditorBuffer.cs 2004-01-31 04:48:02 UTC (rev 728)
@@ -263,6 +263,10 @@
if (prevMarker == IntPtr.Zero)
prevMarker = gtk_source_buffer_get_last_marker (Handle);
+ // no markers
+ if (prevMarker == IntPtr.Zero)
+ return;
+
IntPtr nm = gtk_source_marker_get_marker_type (prevMarker);
string name = GLibSharp.Marshaller.PtrToStringGFree (nm);
if (name == "SourceEditorBookmark") {
@@ -302,6 +306,10 @@
if (nextMarker == IntPtr.Zero)
nextMarker = gtk_source_buffer_get_first_marker (Handle);
+ // no markers
+ if (nextMarker == IntPtr.Zero)
+ return;
+
IntPtr nm = gtk_source_marker_get_marker_type (nextMarker);
string name = GLibSharp.Marshaller.PtrToStringGFree (nm);
if (name == "SourceEditorBookmark") {
More information about the Monodevelop-patches-list
mailing list