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

Error in handling hue value in HSL color model

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P3: Somewhat important
    • 4.8.0
    • 4.7.1
    • GUI: Painting
    • None
    • 88c1670a658d55257d50181d741afe562e44344b

    Description

      hslHueF says:
      return ct.ahsl.hue == USHRT_MAX ? -1.0 : ct.ahsl.hue / 36000.0;
      It thinks that for achromatic color hue should be set to USHRT_MAX. But function toHsl sets it to 0. As the result hslHueF returns 0 for achromatic colors, while is should return -1.

      Attachments

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

        Activity

          People

            rodal Samuel Rødal
            devinull Sergey Shkadinov
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes