mirror of
https://github.com/aseprite/aseprite.git
synced 2025-04-03 07:20:46 +00:00
Fix bug reading UUID property from backup data/undo data
This commit is contained in:
parent
398ca95392
commit
d5406cbc55
@ -117,6 +117,7 @@ static void write_property_value(std::ostream& os, const UserData::Variant& vari
|
|||||||
for (int i=0; i<16; ++i) {
|
for (int i=0; i<16; ++i) {
|
||||||
write8(os, uuid[i]);
|
write8(os, uuid[i]);
|
||||||
}
|
}
|
||||||
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -236,7 +237,7 @@ static UserData::Variant read_property_value(std::istream& is, uint16_t type)
|
|||||||
case USER_DATA_PROPERTY_TYPE_UUID: {
|
case USER_DATA_PROPERTY_TYPE_UUID: {
|
||||||
base::Uuid value;
|
base::Uuid value;
|
||||||
uint8_t* bytes = value.bytes();
|
uint8_t* bytes = value.bytes();
|
||||||
for (int i; i<16;++i) {
|
for (int i=0; i<16; ++i) {
|
||||||
bytes[i] = read8(is);
|
bytes[i] = read8(is);
|
||||||
}
|
}
|
||||||
return value;
|
return value;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user