diff --git a/PdfForQtLib/sources/pdfccittfaxdecoder.cpp b/PdfForQtLib/sources/pdfccittfaxdecoder.cpp index 15da19f..f425173 100644 --- a/PdfForQtLib/sources/pdfccittfaxdecoder.cpp +++ b/PdfForQtLib/sources/pdfccittfaxdecoder.cpp @@ -444,7 +444,7 @@ PDFImageData PDFCCITTFaxDecoder::decode() ++index; } - writer.write((isCurrentPixelBlack != m_parameters.hasBlackIsOne) ? 1 : 0); + writer.write(isCurrentPixelBlack ? 0 : 1); } writer.finishLine();