Behavior on a value type should not cancel previous assignment.
authorMichael Brasser <michael.brasser@nokia.com>
Wed, 9 Nov 2011 03:01:56 +0000 (13:01 +1000)
committerQt by Nokia <qt-info@nokia.com>
Wed, 9 Nov 2011 07:23:57 +0000 (08:23 +0100)
commit28102d1935dfd7fc88c4bb3b656aadc44942f562
treee96d213cb6b62d0e4061793d3a13006edbd38b17
parent15547ac366bdfd6f35779995b5d56df669b5e564
Behavior on a value type should not cancel previous assignment.

The call to read the value type value causes the previously assigned
value to be overridden. This commit fixes the issue, but doesn't
solve the root cause, which would require changes at the
compiler/vme level.

Task-number: QTBUG-20827
Change-Id: I1a53ee7b777bea81c5929ab7e47e2932e6901967
Reviewed-by: Martin Jones <martin.jones@nokia.com>
src/declarative/util/qdeclarativebehavior.cpp
tests/auto/declarative/qdeclarativebehaviors/data/valueType.qml [new file with mode: 0644]
tests/auto/declarative/qdeclarativebehaviors/tst_qdeclarativebehaviors.cpp