summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: d9adfc5)
raw | patch | inline | side by side (parent: d9adfc5)
author | jaspervdg <jaspervdg@users.sourceforge.net> | |
Tue, 2 Dec 2008 09:39:11 +0000 (09:39 +0000) | ||
committer | jaspervdg <jaspervdg@users.sourceforge.net> | |
Tue, 2 Dec 2008 09:39:11 +0000 (09:39 +0000) |
src/helper/png-write.cpp | patch | blob | history |
index eb60169c47d9ad21be838a6858f2a8bf616edafd..753b0df45ee1a684ad07e283663ee00cf9e93016 100644 (file)
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
write_status = sp_png_write_rgba_striped(doc, path, width, height, xdpi, ydpi, sp_export_get_rows, &ebp);
nr_pixelstore_64K_free(ebp.px);
} else {
- ebp.px = g_new(guchar, 4 * 64 * width);
ebp.sheight = 64;
+ ebp.px = g_new(guchar, 4 * ebp.sheight * width);
write_status = sp_png_write_rgba_striped(doc, path, width, height, xdpi, ydpi, sp_export_get_rows, &ebp);
g_free(ebp.px);
}