[Tkabber-dev] r511 - trunk/plugins/vimage/lib/viewer

tkabber-svn at jabber.ru tkabber-svn at jabber.ru
Sun Feb 26 01:13:03 MSK 2012


Author: rejjin
Date: 2012-02-26 01:13:02 +0400 (Sun, 26 Feb 2012)
New Revision: 511

Modified:
   trunk/plugins/vimage/lib/viewer/viewer.tcl
Log:
Fixed: error when second click on "Free memory" 

Modified: trunk/plugins/vimage/lib/viewer/viewer.tcl
===================================================================
--- trunk/plugins/vimage/lib/viewer/viewer.tcl	2012-01-06 06:30:19 UTC (rev 510)
+++ trunk/plugins/vimage/lib/viewer/viewer.tcl	2012-02-25 21:13:02 UTC (rev 511)
@@ -519,7 +519,7 @@
 	set groups [lsort [array names state groups,*]]
 	
 	# Without history style.
-	if {[llength $groups] == 0 && [string length $state(last)] != 0} {
+	if {[llength $groups] == 0 && [string length $state(last)] != 0 && [info exist state(image,$inserttext)]} {
 		SetImage $self $state(image,$inserttext)
 		SetHeader $self $inserttext
 		return



More information about the Tkabber-dev mailing list