From c545753f66b387413e51cf7726deec025e58803f Mon Sep 17 00:00:00 2001 From: Xavier Claessens Date: Tue, 16 Dec 2008 09:32:16 +0000 Subject: Do not assert the tab exists in empathy_chat_text_view_tag_set(), simply return silently. svn path=/trunk/; revision=2006 --- libempathy-gtk/empathy-chat-text-view.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/libempathy-gtk/empathy-chat-text-view.c b/libempathy-gtk/empathy-chat-text-view.c index b17dd3b06..9362303a2 100644 --- a/libempathy-gtk/empathy-chat-text-view.c +++ b/libempathy-gtk/empathy-chat-text-view.c @@ -1361,9 +1361,8 @@ empathy_chat_text_view_tag_set (EmpathyChatTextView *view, table = gtk_text_buffer_get_tag_table (priv->buffer); tag = gtk_text_tag_table_lookup (table, tag_name); - g_return_val_if_fail (tag != NULL, NULL); - if (first_property_name) { + if (tag && first_property_name) { va_start (list, first_property_name); g_object_set_valist (G_OBJECT (tag), first_property_name, list); va_end (list); -- cgit v1.2.3