From e46a25ff6f743a98282a391eba00443b6d2742fa Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Sat, 4 Jul 2009 16:34:07 +0100 Subject: [PATCH] show extent of character updates --- pctb/dictionary-manager | 11 ++++++++--- 1 file changed, 8 insertions(+), 3 deletions(-) diff --git a/pctb/dictionary-manager b/pctb/dictionary-manager index 3c338ca..9cbdb78 100755 --- a/pctb/dictionary-manager +++ b/pctb/dictionary-manager @@ -1186,9 +1186,14 @@ proc approve_showentry {ix file specdata} { label $wb-def.def -text $def pack $wb-def.scope $wb-def.def -side bottom - set ppm [exec pnmscale 2 << $image] - image create photo approve/$ix -data $ppm - label $wb-image -image approve/$ix -bd 2 -relief sunken + if {[regexp {^P2} $image]} { + set image [exec pgmtoppm {#008-white} << $image | pnmnoraw] + append image "\n" + } + set image [exec pnmscale 2 << $image] + + image create photo approve/$ix -data $image + label $wb-image -image approve/$ix -bd 2 -relief flat -bg black manyset [dict2_reqkind_rows $dict] reqkind approve_showentry_xinfo/$reqkind $wb-xinfo $def -- 2.30.2