diff options
author | Lars Knoll <lars.knoll@digia.com> | 2013-10-27 21:43:37 +0100 |
---|---|---|
committer | The Qt Project <gerrit-noreply@qt-project.org> | 2013-11-04 15:01:30 +0100 |
commit | 960d473f15c9cfc7bf73bb3b4dc0e4494a7dbe92 (patch) | |
tree | 0098bb6b85fe56e4911a672b1de1b821a408ecb5 /src/qml/compiler | |
parent | 2f1e4ca5ce48b838b37e0b49ee23e481f822fae4 (diff) |
Fix a bug in LifetimeInterval:covers()
Change-Id: I7c3b0b2ac43462a9834e3f1891dae23fc9ed061d
Reviewed-by: Erik Verbruggen <erik.verbruggen@digia.com>
Diffstat (limited to 'src/qml/compiler')
-rw-r--r-- | src/qml/compiler/qv4ssa_p.h | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/qml/compiler/qv4ssa_p.h b/src/qml/compiler/qv4ssa_p.h index fc84ffd551..aa713d3fec 100644 --- a/src/qml/compiler/qv4ssa_p.h +++ b/src/qml/compiler/qv4ssa_p.h @@ -98,9 +98,7 @@ public: bool covers(int position) const { foreach (const Range &r, _ranges) { - if (position < r.start) - return false; - if (position <= r.end) + if (r.covers(position)) return true; } return false; |