summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSQmlEngine.cpp
diff options
context:
space:
mode:
authorAntti Kokko <antti.kokko@qt.io>2020-02-10 08:31:00 +0200
committerAntti Kokko <antti.kokko@qt.io>2020-02-10 08:31:39 +0200
commit1c68b3f7e000fbb3e04e5183781b96f8a6223370 (patch)
treee20629d2fd6f1890840374c0c1eb7f551dc8fe65 /src/runtime/Qt3DSQmlEngine.cpp
parent12f4d0fee51e5e19eb82f9ded798a661629c132c (diff)
parentfe3ffda451732ebca0bdd7ecd19099f4cbfcfa75 (diff)
Merge branch '2.6'
Diffstat (limited to 'src/runtime/Qt3DSQmlEngine.cpp')
-rw-r--r--src/runtime/Qt3DSQmlEngine.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/runtime/Qt3DSQmlEngine.cpp b/src/runtime/Qt3DSQmlEngine.cpp
index 16675d8..1cadb3d 100644
--- a/src/runtime/Qt3DSQmlEngine.cpp
+++ b/src/runtime/Qt3DSQmlEngine.cpp
@@ -2114,7 +2114,7 @@ TElement *CQmlEngineImpl::getTarget(const QString &component) {
target = CQmlElementHelper::GetElement(
*m_Application,
m_Application->LoadAndGetPresentationById(component.left(delimIndex)),
- component.right(delimIndex + 1), NULL);
+ component.right(component.length() - delimIndex - 1), NULL);
} else {
target = CQmlElementHelper::GetElement(
*m_Application,