summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qmldom.cpp
diff options
context:
space:
mode:
authorAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 07:08:50 (GMT)
committerAaron Kennedy <aaron.kennedy@nokia.com>2009-07-16 07:08:50 (GMT)
commitd71ef06fc1261968b8c5ecf7a438db02e2654b29 (patch)
treef530a2b311bea40e13fdfe2bb2da0ccb4aa72b65 /src/declarative/qml/qmldom.cpp
parentd080c1c2ded0d59974f86f9f3dac91b099bda0a9 (diff)
downloadQt-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.cpp4
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;
}