anjuta r4728 - in trunk: . plugins/sourceview



Author: jhs
Date: Tue Feb 10 10:19:30 2009
New Revision: 4728
URL: http://svn.gnome.org/viewvc/anjuta?rev=4728&view=rev

Log:
2009-02-10  Johannes Schmid  <jhs gnome org>

	* plugins/sourceview/plugin.c (create_style_model):
	#571114 â Crash after clicking on Edit/Preferences with open document

Modified:
   trunk/ChangeLog
   trunk/plugins/sourceview/plugin.c

Modified: trunk/plugins/sourceview/plugin.c
==============================================================================
--- trunk/plugins/sourceview/plugin.c	(original)
+++ trunk/plugins/sourceview/plugin.c	Tue Feb 10 10:19:30 2009
@@ -162,7 +162,7 @@
 							COLUMN_NAME, gtk_source_style_scheme_get_name (scheme),
 							COLUMN_DESC, gtk_source_style_scheme_get_description (scheme),
 							COLUMN_ID, id, -1);
-		if (g_str_equal (id, current_style))
+		if (current_style && g_str_equal (id, current_style))
 		{
 			*current = gtk_tree_iter_copy (&iter);
 		}



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