chiark
/
gitweb
/
~yarrgweb
/
ypp-sc-tools.web-test.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f3d9ef5
)
Use tmpfile trick for pixmaps too [-iwj]
author
ceb
<clareb@felix.relativity.greenend.org.uk>
Sat, 4 Jul 2009 20:45:05 +0000
(21:45 +0100)
committer
ceb
<clareb@felix.relativity.greenend.org.uk>
Sat, 4 Jul 2009 20:45:05 +0000
(21:45 +0100)
pctb/dictionary-manager
patch
|
blob
|
history
diff --git
a/pctb/dictionary-manager
b/pctb/dictionary-manager
index ad05c6b1760b343571a1bb3b052b57f17c2b8f82..5e108a7ea72583e29a958ac60027dac37f73f845 100755
(executable)
--- a/
pctb/dictionary-manager
+++ b/
pctb/dictionary-manager
@@
-422,8
+422,10
@@
proc required/pixmap {} {
if {![string length $ppml]} break
append ppm $ppml "\n"
}
- set data [exec pnmscale 2 << $ppm]
- image create photo image/main -data $data
+ set tmpfile ./#dictimage#.tmp
+ exec pnmscale 2 << $ppm >$tmpfile
+ image create photo image/main -file $tmpfile
+ file delete $tmpfile
set alloptions [exec ./database-info-fetch $unk_what]