Welcome to mirror list, hosted at ThFree Co, Russian Federation.

git.blender.org/blender.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKent Mein <mein@cs.umn.edu>2004-06-09 23:49:43 +0400
committerKent Mein <mein@cs.umn.edu>2004-06-09 23:49:43 +0400
commit7ff5c16a025adc56651b293ca993da82a2432a75 (patch)
treedffb643d526d3267573dc1bec4fe8b04512c0d77 /source/blender/imbuf
parent57fc443fe4193563f96b244dbfdf8a2222c8ebfc (diff)
This fix is thanks to: hangman4 (Thomas Power)
Basically needed a fflush on the file after all of the writing. This closes out 1080 Kent
Diffstat (limited to 'source/blender/imbuf')
-rw-r--r--source/blender/imbuf/intern/bmp.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/source/blender/imbuf/intern/bmp.c b/source/blender/imbuf/intern/bmp.c
index 7f7e30923b7..6817040faa8 100644
--- a/source/blender/imbuf/intern/bmp.c
+++ b/source/blender/imbuf/intern/bmp.c
@@ -243,5 +243,9 @@ short imb_savebmp(struct ImBuf *ibuf, int outfile, int flags) {
/* add padding here */
for (t=0;t<extrabytes;t++) if (putc(0,ofile) == EOF) return 0;
}
+ if (ofile) {
+ fflush(ofile);
+ fclose(ofile);
+ }
return 1;
}