Changeset 781


Ignore:
Timestamp:
Aug 11, 2010, 3:07:26 PM (15 years ago)
Author:
Dmitry A. Kuminov
Message:

gui: Force mode to O_BINARY for temporary file descriptors we get from CUPS when printing using the PDF engine.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/gui/painting/qpdf.cpp

    r769 r781  
    16901690            return false;
    16911691        }
     1692#if defined(Q_WS_PM)
     1693        // some CUPS versions don't set the mode of the returned fd to O_BINARY
     1694        // which is vital for correct PDF generation (consider binary blocks);
     1695        // force it here
     1696        ::setmode(ret.first, O_BINARY);
     1697#endif
    16921698        cupsTempFile = ret.second;
    16931699        outDevice = new QFile();
Note: See TracChangeset for help on using the changeset viewer.