Fix error handling in gradient parsing
For a malformed gradient specification, the parsing code would return
-1. However, since the parsing function returns bool, not int, that
value would be cast to true: the opposite of the intended. Fix by
returning false instead.
Pick-to: 6.12
Change-Id: I04d56b82f254bf8e290ab465bfc60a9db2dd2660
Reviewed-by: Eskil Abrahamsen Blomfeldt <eskil.abrahamsen-blomfeldt@qt.io>
| commit | 1a6903ade07bc55cd19b4a7633fada0b0e8cb3db |
| parent | 07124b2d054f989319d1a17258f1b4901e463d11 |
| author | Eirik Aavitsland <eirik.aavitsland@qt.io> |
| committer | Eirik Aavitsland <eirik.aavitsland@qt.io> |
| commit time | Wed, 24 Jun 2026 06:54:53 +0000 |