diff options
| author | Marc Jeanmougin <marc@jeanmougin.fr> | 2016-09-25 22:50:43 +0000 |
|---|---|---|
| committer | Marc Jeanmougin <marcjeanmougin@free.fr> | 2016-09-25 22:50:43 +0000 |
| commit | efc66f4403df7128ef6ca2ac98893b477abff9bf (patch) | |
| tree | 5db60591a8d11b79a7bdda1078dce561520b89ce /src/helper/png-write.cpp | |
| parent | Exposes to the user additional PNG settings: Interlacing, grayscale, bit dept... (diff) | |
| download | inkscape-efc66f4403df7128ef6ca2ac98893b477abff9bf.tar.gz inkscape-efc66f4403df7128ef6ca2ac98893b477abff9bf.zip | |
minor fix (+ satisfy build bots (?))
(bzr r15132)
Diffstat (limited to 'src/helper/png-write.cpp')
| -rw-r--r-- | src/helper/png-write.cpp | 10 |
1 files changed, 3 insertions, 7 deletions
diff --git a/src/helper/png-write.cpp b/src/helper/png-write.cpp index f270dcc95..2433e2777 100644 --- a/src/helper/png-write.cpp +++ b/src/helper/png-write.cpp @@ -359,14 +359,10 @@ sp_export_get_rows(guchar const **rows, void **to_free, int row, int num_rows, v // it's identical to the GdkPixbuf format. convert_pixels_argb32_to_pixbuf(px, ebp->width, num_rows, stride); - *to_free = px; - // If a custom bit depth or color type is asked, then convert rgb to grayscale, etc. - if(color_type !=6 || bit_depth != 8){ - const guchar* new_data = pixbuf_to_png(rows, px, num_rows, ebp->width, stride, color_type, bit_depth); - *to_free = (void*) new_data; - free(px); - } + const guchar* new_data = pixbuf_to_png(rows, px, num_rows, ebp->width, stride, color_type, bit_depth); + *to_free = (void*) new_data; + free(px); return num_rows; } |
