summaryrefslogtreecommitdiffstats
path: root/src/runtime/Qt3DSQmlEngine.cpp
diff options
context:
space:
mode:
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 d6c563a..fa2a5d7 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,