summaryrefslogtreecommitdiffstats
path: root/src/declarative/qml/qdeclarativeengine.cpp
diff options
context:
space:
mode:
authorDavid Boddie <david.boddie@nokia.com>2011-06-09 11:55:14 (GMT)
committerDavid Boddie <david.boddie@nokia.com>2011-06-09 11:55:14 (GMT)
commitfc2a790e96be47b4da3e308c5e0272e4840a2618 (patch)
tree4c1cd7998777252463a060d4ce73f284441d7c22 /src/declarative/qml/qdeclarativeengine.cpp
parent7b4e52045d17bcc4b3bb1e0973c3af2e48381c5e (diff)
parent3916feefc5ebadba3320029a29ecf02d8934e879 (diff)
downloadQt-fc2a790e96be47b4da3e308c5e0272e4840a2618.zip
Qt-fc2a790e96be47b4da3e308c5e0272e4840a2618.tar.gz
Qt-fc2a790e96be47b4da3e308c5e0272e4840a2618.tar.bz2
Merge branch '4.8' of scm.dev.nokia.troll.no:qt/qt into 4.8
Conflicts: doc/src/declarative/righttoleft.qdoc examples/draganddrop/fridgemagnets/main.cpp examples/script/context2d/main.cpp
Diffstat (limited to 'src/declarative/qml/qdeclarativeengine.cpp')
-rw-r--r--src/declarative/qml/qdeclarativeengine.cpp3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/declarative/qml/qdeclarativeengine.cpp b/src/declarative/qml/qdeclarativeengine.cpp
index b81f631..e5e89d4 100644
--- a/src/declarative/qml/qdeclarativeengine.cpp
+++ b/src/declarative/qml/qdeclarativeengine.cpp
@@ -1716,9 +1716,6 @@ QScriptValue QDeclarativeEnginePrivate::rect(QScriptContext *ctxt, QScriptEngine
qsreal w = ctxt->argument(2).toNumber();
qsreal h = ctxt->argument(3).toNumber();
- if (w < 0 || h < 0)
- return engine->nullValue();
-
return QDeclarativeEnginePrivate::get(engine)->scriptValueFromVariant(QVariant::fromValue(QRectF(x, y, w, h)));
}