mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 14:47:44 +00:00
PixelPaint: Fix saving project
Some json objects didn't get finished, so it crashed.
This commit is contained in:
parent
9c6999ecf2
commit
937785f6c1
1 changed files with 3 additions and 0 deletions
|
@ -128,7 +128,10 @@ void Image::serialize_as_json(JsonObjectSerializer<StringBuilder>& json) const
|
|||
MUST(json_layer.add("selected", layer.is_selected()));
|
||||
// FIXME: Respect mask
|
||||
MUST(json_layer.add("bitmap", encode_base64(bmp_dumber.dump(layer.display_bitmap()))));
|
||||
MUST(json_layer.finish());
|
||||
}
|
||||
|
||||
MUST(json_layers.finish());
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue