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

QMacPrintEnginePrivate::paperSize() is broken

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P3: Somewhat important
    • Resolution: Out of scope
    • Affects Version/s: 4.6.1
    • Fix Version/s: 4.8.x
    • Component/s: GUI: Printing
    • Labels:
      None
    • Environment:
      Mac

      Description

      In QMacPrintEnginePrivate::paperSize() the printer's paper size
      is converted to mm (rounded up) and compared to the values stored in
      qt_paperSizes[] by calls to qt_paperSizeToQSizeF().

      This is a broken concept, because in other places qSizeFTopaperSize()
      is used to determine the PaperSize from a given QSizeF, and there
      a tolerance of +/-1mm is allowed.

      What happens under Mac OS X 10.6.2 with the "HP Laserjet 5100 Series"
      driver is that in one place the page size is detected as
      being, e.g., Letter, while in another place it is considered Custom.
      Since there is no custom page size stored, applications then fail
      because they get a custom page size of (-1, -1).

        Attachments

          Issue Links

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

            Activity

              People

              • Assignee:
                johnlayt John Layt
                Reporter:
                dettman Dean Dettman (Inactive)
              • Votes:
                4 Vote for this issue
                Watchers:
                7 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:

                  Gerrit Reviews

                  There are no open Gerrit changes