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

Bug in qddshandler.cpp

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.2
    • 5.3.1
    • Image formats
    • None
    • 85e621e3ecf449bb0587bd4da97ca66179b24f31

    Description

      Bug in function

      bool QDDSHandler::write(const QImage &outImage)
      
      ...
      
          for (int width = 0; width < image.width(); width++) {
              for (int height = 0; height < image.height(); height++) {
                 QRgb pixel = image.pixel(height, width);; 
      

      This line produce qWarning:
      QImage::pixel: coordinate (418,369) out of range

      Correct version is:

      QRgb pixel = image.pixel(width, height);

      Attachments

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

        Activity

          People

            vgt Eirik Aavitsland
            mcoder Konstantin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes