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
This commit is contained in:
José Matox 2004-05-04 09:42:24 +00:00
parent 07cc9f6753
commit fc09056ccc
2 changed files with 6 additions and 1 deletions

View File

@ -1,3 +1,8 @@
2004-05-03 José Matos <jamatos@lyx.org>
* scripts/legacy_lyxpreview2ppm.py: bug fix for temporary file
writing.
2004-05-03 Angus Leeming <leeming@lyx.org>
* layouts/scrlettr.layout: include counters.

View File

@ -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):