Uploaded image for project: 'Qt'
  1. Qt
  2. QTBUG-59019

Printing does not fully respect grayscale colorspace with Qt::Dense4Pattern

    XMLWordPrintable

Details

    • Bug
    • Resolution: Unresolved
    • P2: Important
    • None
    • 5.7.1
    • GUI: Printing
    • None
    • Linux

    Description

      The following code from KTextEditor-5.31.0:

      KateRenderer::paintTextLine()
      paint.fillRect(0, lineHeight(),
          range->shiftX() - xStart, lineHeight() * (range->viewLineCount() - 1),
          QBrush(config()->wordWrapMarkerColor(), Qt::Dense4Pattern)
      );
      

      prints a colored pattern albeit selecting Grayscale in the printer dialog.

      The non-grayscale color of the pattern in PDF output file is different from time to time - which suggests that the issue might be caused by an uninitialized C/C++ variable.

      Attachments

        No reviews matched the request. Check your Options in the drop-down menu of this sections header.

        Activity

          People

            johnlayt John Layt
            atomsymbol Jan Ziak
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:

              Gerrit Reviews

                There are no open Gerrit changes