diff options
author | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-09-11 16:38:29 +0200 |
---|---|---|
committer | Fabian Kosmale <fabian.kosmale@qt.io> | 2019-09-12 08:07:10 +0200 |
commit | 5ca1d2e0b2912e578a32c5e11b4fd1d7a0ef28f3 (patch) | |
tree | 1b5b3949a606ce7691c13d98167adf82a6c73d19 /src/quick/util/qquickfontmetrics.cpp | |
parent | d38bac596946c3dd9cce3c0b4127509421dc917d (diff) |
QQmlTypeLoader: Prevent trivial cycles
The type loader already contained a cycle check, however it did not work
for the attached example. We now do an additional test for A->B->A
cycles, which fixes the bug. This is a valid strategy, as in that case
the currently resolved type would immediately fullfill the depentency of
the type waiting on it, which in turn resolves the only dependency of
the current type.
Fixes: QTBUG-78098
Change-Id: I8b550a1c240d3d0fbf158beb99a5daf992904cb0
Reviewed-by: Simon Hausmann <simon.hausmann@qt.io>
Diffstat (limited to 'src/quick/util/qquickfontmetrics.cpp')
0 files changed, 0 insertions, 0 deletions