diff options
author | Kent Mein <mein@cs.umn.edu> | 2004-06-09 23:49:43 +0400 |
---|---|---|
committer | Kent Mein <mein@cs.umn.edu> | 2004-06-09 23:49:43 +0400 |
commit | 7ff5c16a025adc56651b293ca993da82a2432a75 (patch) | |
tree | dffb643d526d3267573dc1bec4fe8b04512c0d77 | |
parent | 57fc443fe4193563f96b244dbfdf8a2222c8ebfc (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
-rw-r--r-- | source/blender/imbuf/intern/bmp.c | 4 |
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; } |