diff options
author | Tobias Christiansen <tobyase@serenityos.org> | 2022-03-08 23:35:29 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-03-09 17:15:17 +0100 |
commit | 937785f6c1d9f07bbde922f0bd88fa67091d4427 (patch) | |
tree | 4caeba021ccbe7b3301b561adaf6a2e2d504a5f9 /Userland | |
parent | 9c6999ecf2f92e6876307097889f40e23e3cbfe2 (diff) | |
download | serenity-937785f6c1d9f07bbde922f0bd88fa67091d4427.zip |
PixelPaint: Fix saving project
Some json objects didn't get finished, so it crashed.
Diffstat (limited to 'Userland')
-rw-r--r-- | Userland/Applications/PixelPaint/Image.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/Userland/Applications/PixelPaint/Image.cpp b/Userland/Applications/PixelPaint/Image.cpp index 45edd8770f..a740d90ada 100644 --- a/Userland/Applications/PixelPaint/Image.cpp +++ b/Userland/Applications/PixelPaint/Image.cpp @@ -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()); } } |