diff options
| author | Johan B. C. Engelen <jbc.engelen@swissonline.ch> | 2007-11-16 18:43:48 +0000 |
|---|---|---|
| committer | johanengelen <johanengelen@users.sourceforge.net> | 2007-11-16 18:43:48 +0000 |
| commit | 51b4305a4533e44e509ea9f9bb84083237dd3805 (patch) | |
| tree | 355d137fa88c945e4c183d92a78e42b3d803ecf7 /src/helper | |
| parent | update translation for Khmer (diff) | |
| download | inkscape-51b4305a4533e44e509ea9f9bb84083237dd3805.tar.gz inkscape-51b4305a4533e44e509ea9f9bb84083237dd3805.zip | |
Fix: [ 1829427 ] PNG export via cmd line is restricted to 65535x65535
(bzr r4091)
Diffstat (limited to 'src/helper')
| -rw-r--r-- | src/helper/png-write.cpp | 6 | ||||
| -rw-r--r-- | src/helper/png-write.h | 8 |
2 files changed, 7 insertions, 7 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp index 14c1ec325..6feefec7d 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -46,7 +46,7 @@ static unsigned int const MAX_STRIPE_SIZE = 1024*1024; struct SPEBP { - int width, height, sheight; + unsigned long int width, height, sheight; guchar r, g, b, a; NRArenaItem *root; // the root arena item to show; it is assumed that all unneeded items are hidden guchar *px; @@ -62,7 +62,7 @@ typedef struct SPPNGBD { } SPPNGBD; static bool -sp_png_write_rgba_striped(gchar const *filename, int width, int height, double xdpi, double ydpi, +sp_png_write_rgba_striped(gchar const *filename, unsigned long int width, unsigned long int height, double xdpi, double ydpi, int (* get_rows)(guchar const **rows, int row, int num_rows, void *data), void *data) { @@ -294,7 +294,7 @@ hide_other_items_recursively(SPObject *o, GSList *list, unsigned dkey) bool sp_export_png_file(SPDocument *doc, gchar const *filename, double x0, double y0, double x1, double y1, - unsigned width, unsigned height, double xdpi, double ydpi, + unsigned long width, unsigned long height, double xdpi, double ydpi, unsigned long bgcolor, unsigned (*status)(float, void *), void *data, bool force_overwrite, diff --git a/src/helper/png-write.h b/src/helper/png-write.h index 3f1e1761f..1217ba276 100644 --- a/src/helper/png-write.h +++ b/src/helper/png-write.h @@ -16,9 +16,9 @@ struct SPDocument; bool sp_export_png_file (SPDocument *doc, gchar const *filename, - double x0, double y0, double x1, double y1, - unsigned int width, unsigned int height, double xdpi, double ydpi, - unsigned long bgcolor, - unsigned int (*status) (float, void *), void *data, bool force_overwrite = false, GSList *items_only = NULL); + double x0, double y0, double x1, double y1, + unsigned long int width, unsigned long int height, double xdpi, double ydpi, + unsigned long bgcolor, + unsigned int (*status) (float, void *), void *data, bool force_overwrite = false, GSList *items_only = NULL); #endif |
