gtksourceview r2161 - in trunk: . gtksourceview
- From: jhs svn gnome org
- To: svn-commits-list gnome org
- Subject: gtksourceview r2161 - in trunk: . gtksourceview
- Date: Tue, 10 Feb 2009 10:45:08 +0000 (UTC)
Author: jhs
Date: Tue Feb 10 10:45:08 2009
New Revision: 2161
URL: http://svn.gnome.org/viewvc/gtksourceview?rev=2161&view=rev
Log:
2009-02-10 Johannes Schmid <jhs gnome org>
* gtksourceview/gtksourceview.c (update_current_line_color):
#570492 â Canot open editor - crash
Modified:
trunk/ChangeLog
trunk/gtksourceview/gtksourceview.c
Modified: trunk/gtksourceview/gtksourceview.c
==============================================================================
--- trunk/gtksourceview/gtksourceview.c (original)
+++ trunk/gtksourceview/gtksourceview.c Tue Feb 10 10:45:08 2009
@@ -3825,9 +3825,12 @@
static void
update_current_line_color (GtkSourceView *view)
{
- view->priv->current_line_color_set =
- _gtk_source_style_scheme_get_current_line_color (view->priv->style_scheme,
- &view->priv->current_line_color);
+ if (view->priv->style_scheme)
+ {
+ view->priv->current_line_color_set =
+ _gtk_source_style_scheme_get_current_line_color (view->priv->style_scheme,
+ &view->priv->current_line_color);
+ }
}
static void
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]