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

Error in handling hue value in HSL color model

XMLWordPrintable

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

      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.

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

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

              Created:
              Updated:
              Resolved:

                There are no open Gerrit changes