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

Coercing an undefined value to a numeric value causes problems with rendering

    XMLWordPrintable

Details

    • 81768d64fda69a7d464338660b552979b9e74b3a

    Description

      When an undefined value is somehow coerced to be set on a field expecting something numeric (stuff I've tested being x/y at least, but I imagine this also affects scale and other things), then Bad Things can happen.

      See attached testcase, and notice that the green rectangle vanishes unless the 'x' property is not set.

      Note that in a debug build, you'll see some of these:
      [W] default: QTransform::translate:414 - QTransform::translate with NaN called

      I'm not sure what the optimal behavior is here, but I don't think this is it.

      Attachments

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

        Activity

          People

            w00t Robin Burchell
            w00t Robin Burchell
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes