From: José Matox Date: Tue, 4 May 2004 09:42:24 +0000 (+0000) Subject: fix wrong point for writing in temporary file X-Git-Tag: 1.6.10~15244 X-Git-Url: https://git.lyx.org/gitweb/?a=commitdiff_plain;h=fc09056ccce10962239a9f128eae32701408f7af;p=lyx.git fix wrong point for writing in temporary file git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8733 a592a061-630c-0410-9148-cb99ea01b6c8 --- diff --git a/lib/ChangeLog b/lib/ChangeLog index be1c6e5846..d016268632 100644 --- a/lib/ChangeLog +++ b/lib/ChangeLog @@ -1,3 +1,8 @@ +2004-05-03 José Matos + + * scripts/legacy_lyxpreview2ppm.py: bug fix for temporary file + writing. + 2004-05-03 Angus Leeming * layouts/scrlettr.layout: include counters. diff --git a/lib/scripts/legacy_lyxpreview2ppm.py b/lib/scripts/legacy_lyxpreview2ppm.py index dd126afd99..8b618d5760 100644 --- a/lib/scripts/legacy_lyxpreview2ppm.py +++ b/lib/scripts/legacy_lyxpreview2ppm.py @@ -241,7 +241,7 @@ def crop_files(pnmcrop, basename): new = t.open(file, "r") copyfileobj(new, tmp) if not new.close(): - copyfileobj(tmp, open(file,"wb")) + copyfileobj(tmp, open(file,"wb"), 1) def legacy_conversion(argv):