summary refs log tree commit diff stats
path: root/src
diff options
context:
space:
mode:
authorTingPing <tingping@tingping.se>2013-09-15 10:44:55 -0400
committerTingPing <tingping@tingping.se>2013-09-15 10:44:55 -0400
commit277732e384a0c51d65a835d7ff810111ca735e4a (patch)
tree91c1d216cf3414a890af0a21843ac2f44f8d852d /src
parentf13413c26a30bfa5615ab34b7a1acd5cb3336bba (diff)
Fix xtext crash in rawlog/text events window
Closes #740
Diffstat (limited to 'src')
-rw-r--r--src/fe-gtk/xtext.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/fe-gtk/xtext.c b/src/fe-gtk/xtext.c
index 3d2ae7ae..3850b3be 100644
--- a/src/fe-gtk/xtext.c
+++ b/src/fe-gtk/xtext.c
@@ -1951,7 +1951,7 @@ gtk_xtext_get_word (GtkXText * xtext, int x, int y, textentry ** ret_ent,
 	word = gtk_xtext_strip_color (word, len, xtext->scratch_buffer, NULL, NULL, slp, FALSE);
 
 	/* avoid turning the cursor into a hand for non-url part of the word */
-	if (xtext->urlcheck_function (GTK_WIDGET (xtext), word))
+	if (xtext->urlcheck_function && xtext->urlcheck_function (GTK_WIDGET (xtext), word))
 	{
 		int start, end;
 		url_last (&start, &end);