From: ceb Date: Sat, 4 Jul 2009 20:45:05 +0000 (+0100) Subject: Use tmpfile trick for pixmaps too [-iwj] X-Git-Tag: 1.9.2~7 X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~yarrgweb/git?p=ypp-sc-tools.db-live.git;a=commitdiff_plain;h=d44517d863e2336f82299f7d3f5fcb68a84fe595;hp=f3d9ef5ccb0f028fb2152d3df34bf5fdada4c350 Use tmpfile trick for pixmaps too [-iwj] --- diff --git a/pctb/dictionary-manager b/pctb/dictionary-manager index ad05c6b..5e108a7 100755 --- 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]