]> git.lyx.org Git - features.git/commitdiff
fix wrong point for writing in temporary file
authorJosé Matox <jamatos@lyx.org>
Tue, 4 May 2004 09:42:24 +0000 (09:42 +0000)
committerJosé Matox <jamatos@lyx.org>
Tue, 4 May 2004 09:42:24 +0000 (09:42 +0000)
git-svn-id: svn://svn.lyx.org/lyx/lyx-devel/trunk@8733 a592a061-630c-0410-9148-cb99ea01b6c8

lib/ChangeLog
lib/scripts/legacy_lyxpreview2ppm.py

index be1c6e5846c3485e14f09dc9fb55300f2e569bc5..d016268632d1b20504057e45b593fd778598ded7 100644 (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.
index dd126afd99a7ca9e01db27831123c226450e3d21..8b618d576045762827d5cd67169fbb5f6d43cd07 100644 (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):