[Tkabber-dev] r1678 - in trunk/tkabber: . plugins/chat

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Fri Feb 20 17:09:53 MSK 2009


Author: sergei
Date: 2009-02-20 17:09:53 +0300 (Fri, 20 Feb 2009)
New Revision: 1678

Modified:
   trunk/tkabber/ChangeLog
   trunk/tkabber/plugins/chat/draw_xhtml_message.tcl
Log:
	* plugins/chat/draw_xhtml_message.tcl: Added checking for incorrect
	  color names.


Modified: trunk/tkabber/ChangeLog
===================================================================
--- trunk/tkabber/ChangeLog	2009-02-20 13:07:06 UTC (rev 1677)
+++ trunk/tkabber/ChangeLog	2009-02-20 14:09:53 UTC (rev 1678)
@@ -20,6 +20,9 @@
 
 	* msgs/de.msg: Updated German translation (thanks to Roger Sondermann).
 
+	* plugins/chat/draw_xhtml_message.tcl: Added checking for incorrect
+	  color names.
+
 2009-02-19  Sergei Golovan  <sgolovan at nes.ru>
 
 	* presence.tcl: Greyed out sending custom presence submenu in chat

Modified: trunk/tkabber/plugins/chat/draw_xhtml_message.tcl
===================================================================
--- trunk/tkabber/plugins/chat/draw_xhtml_message.tcl	2009-02-20 13:07:06 UTC (rev 1677)
+++ trunk/tkabber/plugins/chat/draw_xhtml_message.tcl	2009-02-20 14:09:53 UTC (rev 1678)
@@ -341,8 +341,9 @@
     set tags {}
 
     set color_tag tag_color_$state(color)
-    $chatw tag configure $color_tag -foreground $state(color)
-    lappend tags $color_tag
+    if {![catch {$chatw tag configure $color_tag -foreground $state(color)}]} {
+	lappend tags $color_tag
+    }
 
     set indent_tag tag_indent_$state(lmargin1)_$state(lmargin2)
     $chatw tag configure $indent_tag \



More information about the Tkabber-dev mailing list