Submitted By: Fernando de Oliveira <famobr at yahoo dot com dot br>
Date: 2014-06-11
Initial Package Version: 1.0.54
Upstream Status: Fixed
Origin: Upstream
URL: http://bzr.linuxfoundation.org/loggerhead/openprinting/cups-filters/diff/7219
Description: pdftoraster: Fixed segfault caused by introduction of "no-color-management" option (Bug #1214).
=== modified file 'filter/pdftoraster.cxx'
a
|
b
|
|
444 | 444 | } |
445 | 445 | } |
446 | 446 | /* support the "no-color-management" option */ |
447 | | if (cupsGetOption("no-color-management", num_options, options) == NULL) |
| 447 | if (cupsGetOption("no-color-management", num_options, options) != NULL) |
448 | 448 | cm_off = true; |
449 | 449 | if (!cm_off) { |
450 | 450 | if (getColorProfilePath(ppd,&profilePath)) { |
… |
… |
|
1998 | 1998 | pdfError(-1,const_cast<char *>("Can't open raster stream")); |
1999 | 1999 | exit(1); |
2000 | 2000 | } |
2001 | | if (!cm_off) { |
2002 | | selectConvertFunc(raster); |
2003 | | } |
| 2001 | selectConvertFunc(raster); |
2004 | 2002 | for (i = 1;i <= npages;i++) { |
2005 | 2003 | outPage(doc,catalog,i,out,raster); |
2006 | 2004 | } |