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

QTransfrom::QTransform API documentation has incorrect information about member variable m_13 initialization

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 5.0.0
    • 4.6.2
    • Documentation
    • None
    • If3c7d3eb1c478ebef4f13b4842235445afc48049

    Description

      The documentation for QTransform::QTransform() states that the m_13 is initialized as one.

      " Constructs an identity matrix.

      All elements are set to zero except \c m11 and \c m22 (specifying
      the scale) and \c m13 which are set to 1.
      "

      However, the implementation seems to initialize the m_13 value to zero:

      QTransform::QTransform()
          : affine(true)
          , m_13(0), m_23(0), m_33(1)
          , m_type(TxNone)
          , m_dirty(TxNone)
      {
      }
      

      Attachments

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

        Activity

          People

            mitch_curtis Mitch Curtis
            samimeri Sami Merila (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes