diff options
author | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-16 07:08:50 (GMT) |
---|---|---|
committer | Aaron Kennedy <aaron.kennedy@nokia.com> | 2009-07-16 07:08:50 (GMT) |
commit | d71ef06fc1261968b8c5ecf7a438db02e2654b29 (patch) | |
tree | f530a2b311bea40e13fdfe2bb2da0ccb4aa72b65 /src/declarative/qml/qmldom.cpp | |
parent | d080c1c2ded0d59974f86f9f3dac91b099bda0a9 (diff) | |
download | Qt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.zip Qt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.tar.gz Qt-d71ef06fc1261968b8c5ecf7a438db02e2654b29.tar.bz2 |
Protect against overriding FINAL properties
Diffstat (limited to 'src/declarative/qml/qmldom.cpp')
-rw-r--r-- | src/declarative/qml/qmldom.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/declarative/qml/qmldom.cpp b/src/declarative/qml/qmldom.cpp index 505d872..293ea6a 100644 --- a/src/declarative/qml/qmldom.cpp +++ b/src/declarative/qml/qmldom.cpp @@ -587,7 +587,7 @@ QmlDomProperty QmlDomDynamicProperty::defaultValue() const int QmlDomDynamicProperty::position() const { if (isValid()) { - return d->property.range.offset; + return d->property.location.range.offset; } else return -1; } @@ -599,7 +599,7 @@ int QmlDomDynamicProperty::position() const int QmlDomDynamicProperty::length() const { if (isValid()) - return d->property.range.length; + return d->property.location.range.length; else return -1; } |