summaryrefslogtreecommitdiffstats
path: root/src/helper
diff options
context:
space:
mode:
authorMarc Jeanmougin <marc@jeanmougin.fr>2015-12-07 23:45:01 +0000
committerMarc Jeanmougin <marcjeanmougin@free.fr>2015-12-07 23:45:01 +0000
commita0bef55aef1f82f56535cfadf30247657ccc3f90 (patch)
treea5523d84140303998f86072c6263e16af6d5d15e /src/helper
parentcppification : GHashMaps replaced by stl maps. getResouceList now gives a std... (diff)
parentstatic code analysis (diff)
downloadinkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.tar.gz
inkscape-a0bef55aef1f82f56535cfadf30247657ccc3f90.zip
update to trunk
(bzr r14504.1.7)
Diffstat (limited to 'src/helper')
-rw-r--r--src/helper/png-write.cpp6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp
index fc365c435..9430feeff 100644
--- a/src/helper/png-write.cpp
+++ b/src/helper/png-write.cpp
@@ -128,6 +128,9 @@ sp_png_write_rgba_striped(SPDocument *doc,
int (* get_rows)(guchar const **rows, void **to_free, int row, int num_rows, void *data),
void *data)
{
+ g_return_val_if_fail(filename != NULL, false);
+ g_return_val_if_fail(data != NULL, false);
+
struct SPEBP *ebp = (struct SPEBP *) data;
FILE *fp;
png_structp png_ptr;
@@ -135,9 +138,6 @@ sp_png_write_rgba_striped(SPDocument *doc,
png_color_8 sig_bit;
png_uint_32 r;
- g_return_val_if_fail(filename != NULL, false);
- g_return_val_if_fail(data != NULL, false);
-
/* open the file */
Inkscape::IO::dump_fopen_call(filename, "M");