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

ShaderEffectSource: Check width > 0 && height > 0

    XMLWordPrintable

Details

    • Bug
    • Resolution: Done
    • P2: Important
    • 5.3.2
    • 5.3.1
    • None
    • Windows 8.1
    • db7d66077e92e1ea4231d09c67bb14536e792cd6

    Description

      Following code fails in assertion check in debug mode, but works fine in release:

          Rectangle {
              id: rect
              width: 100
              height: 10
          }
      
          ShaderEffectSource {
              width: 100
              height: -10
              sourceItem: rect
          }
      

      Please check for '<= 0' of width/height, instead of '== 0' in QQuickShaderEffectSource::updatePaintNode().

      Attachments

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

        Activity

          People

            sletta Gunnar Sletta
            nodir.temir Nodir Temirkhodjaev
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              Gerrit Reviews

                There are no open Gerrit changes