Don't detach QGradientStops
Change-Id: I1ae84d0ae825e9fb474d4fab45b0c475a3878b25 Reviewed-by: David Faure <david.faure@kdab.com>bb10
parent
e0cc6e5b8e
commit
a1702da020
|
|
@ -4150,7 +4150,7 @@ public:
|
|||
inline const QRgba64 *getBuffer(const QGradient &gradient, int opacity) {
|
||||
quint64 hash_val = 0;
|
||||
|
||||
QGradientStops stops = gradient.stops();
|
||||
const QGradientStops stops = gradient.stops();
|
||||
for (int i = 0; i < stops.size() && i <= 2; i++)
|
||||
hash_val += stops[i].second.rgba64();
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue