mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-09-01 10:23:15 +00:00
rlottie/parser: Fix float data parsing when data in array form.
Take only the 1st element and discard the rest.
This commit is contained in:
parent
57eea32d4d
commit
0fa16936d1
@ -1685,8 +1685,10 @@ void LottieParserImpl::getValue(float &val)
|
|||||||
{
|
{
|
||||||
if (PeekType() == kArrayType) {
|
if (PeekType() == kArrayType) {
|
||||||
EnterArray();
|
EnterArray();
|
||||||
|
if (NextArrayValue()) val = GetDouble();
|
||||||
|
//discard rest
|
||||||
while (NextArrayValue()) {
|
while (NextArrayValue()) {
|
||||||
val = GetDouble();
|
GetDouble();
|
||||||
}
|
}
|
||||||
} else if (PeekType() == kNumberType) {
|
} else if (PeekType() == kNumberType) {
|
||||||
val = GetDouble();
|
val = GetDouble();
|
||||||
|
Loading…
x
Reference in New Issue
Block a user