diff options
| author | Ralf Stephan <ralf@ark.in-berlin.de> | 2006-06-22 14:26:10 +0000 |
|---|---|---|
| committer | rwst <rwst@users.sourceforge.net> | 2006-06-22 14:26:10 +0000 |
| commit | 2bef43626ceb10288cf4e289dad406608c588eaf (patch) | |
| tree | 2068eaf3d22e88a66cd17bd8a5e107497660292e /src/file.cpp | |
| parent | remove setDoc(), part of fix for #1509854 (diff) | |
| download | inkscape-2bef43626ceb10288cf4e289dad406608c588eaf.tar.gz inkscape-2bef43626ceb10288cf4e289dad406608c588eaf.zip | |
apply patch 1498946 by zbsz (fixes #1492545 "PNG resolution value export")
(bzr r1262)
Diffstat (limited to 'src/file.cpp')
| -rw-r--r-- | src/file.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/file.cpp b/src/file.cpp index de9b615aa..5c236da82 100644 --- a/src/file.cpp +++ b/src/file.cpp @@ -1091,7 +1091,7 @@ hide_other_items_recursively(SPObject *o, GSList *list, unsigned dkey) int sp_export_png_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, - unsigned width, unsigned height, + unsigned width, unsigned height, double xdpi, double ydpi, unsigned long bgcolor, unsigned (*status)(float, void *), void *data, bool force_overwrite, @@ -1168,12 +1168,12 @@ sp_export_png_file(SPDocument *doc, gchar const *filename, if ((width < 256) || ((width * height) < 32768)) { ebp.px = nr_pixelstore_64K_new(FALSE, 0); ebp.sheight = 65536 / (4 * width); - write_status = sp_png_write_rgba_striped(filename, width, height, sp_export_get_rows, &ebp); + write_status = sp_png_write_rgba_striped(filename, 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; - write_status = sp_png_write_rgba_striped(filename, width, height, sp_export_get_rows, &ebp); + write_status = sp_png_write_rgba_striped(filename, width, height, xdpi, ydpi, sp_export_get_rows, &ebp); g_free(ebp.px); } |
