diff --git a/Telegram/SourceFiles/lottie/lottie_animation.cpp b/Telegram/SourceFiles/lottie/lottie_animation.cpp index 3977cdf197..dd9b012281 100644 --- a/Telegram/SourceFiles/lottie/lottie_animation.cpp +++ b/Telegram/SourceFiles/lottie/lottie_animation.cpp @@ -149,7 +149,8 @@ void Animation::parse(const QByteArray &content) { _treeBlueprint = std::make_unique(); const auto blueprint = _treeBlueprint.get(); const auto layers = root.value(QLatin1String("layers")).toArray(); - for (const auto &entry : ranges::view::reverse(layers)) { + for (auto i = layers.end(); i != layers.begin();) { + const auto &entry = *(--i); if (const auto layer = BMLayer::construct(entry.toObject())) { layer->setParent(blueprint); diff --git a/Telegram/ThirdParty/qtlottie b/Telegram/ThirdParty/qtlottie index 5cf5976b18..f905c3712d 160000 --- a/Telegram/ThirdParty/qtlottie +++ b/Telegram/ThirdParty/qtlottie @@ -1 +1 @@ -Subproject commit 5cf5976b1874cb39aabcedf30b2b26b5dbd407a6 +Subproject commit f905c3712d56ea29833ac363ffefb3b1f8c341c9