aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorKai Koehne <kai.koehne@nokia.com>2011-11-30 16:27:01 +0100
committerQt by Nokia <qt-info@nokia.com>2011-12-01 17:30:45 +0100
commit32115087589939225a4516ed15196a4f6632c13b (patch)
treea39a358228e434aa3c342c194f39f65b1d3f285e /src
parent362dfc3fcb6336dca53ac1717ac7957a359a4905 (diff)
Take multi-line expressions into account when rewriting expressions
Take into account the newlines expressions might have when combining multiple expressions into one. Change-Id: Ib7170f624b6b6dee522e2d376a513ac08a8baa46 Reviewed-by: Aaron Kennedy <aaron.kennedy@nokia.com>
Diffstat (limited to 'src')
-rw-r--r--src/declarative/qml/qdeclarativecompiler.cpp1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/declarative/qml/qdeclarativecompiler.cpp b/src/declarative/qml/qdeclarativecompiler.cpp
index 3b47e208eb..aa27d7994f 100644
--- a/src/declarative/qml/qdeclarativecompiler.cpp
+++ b/src/declarative/qml/qdeclarativecompiler.cpp
@@ -3479,6 +3479,7 @@ bool QDeclarativeCompiler::completeComponentBuild()
}
functionArray += expression;
+ lineNumber += expression.count(QLatin1Char('\n'));
reference->compiledIndex = ii;
}
functionArray += QLatin1String("]");