mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-04-23 04:55:15 +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
Notes:
sideshowbarker
2024-07-17 17:40:07 +09:00
Author: https://github.com/TobyAsE Commit: https://github.com/SerenityOS/serenity/commit/937785f6c1 Pull-request: https://github.com/SerenityOS/serenity/pull/12955 Reviewed-by: https://github.com/linusg ✅
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
Reference in a new issue