summaryrefslogtreecommitdiff
path: root/Applications
diff options
context:
space:
mode:
authorLuke <luke.wilde@live.co.uk>2020-12-31 00:44:53 +0000
committerAndreas Kling <kling@serenityos.org>2020-12-31 01:47:41 +0100
commit0f6658900793cd745cfe9537aa74da666762aea1 (patch)
tree86659f2508c2da2e51e01a6a4b5dc92de33b61e9 /Applications
parent22250780ffa755c48597c4930d62dfdcbf99f37f (diff)
downloadserenity-0f6658900793cd745cfe9537aa74da666762aea1.zip
Everywhere: Fix more typos
Diffstat (limited to 'Applications')
-rw-r--r--Applications/PixelPaint/Image.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Applications/PixelPaint/Image.cpp b/Applications/PixelPaint/Image.cpp
index c130998e7c..09a075dfe0 100644
--- a/Applications/PixelPaint/Image.cpp
+++ b/Applications/PixelPaint/Image.cpp
@@ -95,7 +95,7 @@ RefPtr<Image> Image::create_from_file(const String& file_path)
auto layer = Layer::create_with_size(*image, { width, height }, name);
layer->set_location({ json_layer_object.get("locationx").to_i32(), json_layer_object.get("locationy").to_i32() });
layer->set_opacity_percent(json_layer_object.get("opacity_percent").to_i32());
- layer->set_visible(json_layer_object.get("visable").as_bool());
+ layer->set_visible(json_layer_object.get("visible").as_bool());
layer->set_selected(json_layer_object.get("selected").as_bool());
auto bitmap_base64_encoded = json_layer_object.get("bitmap").as_string();
@@ -126,7 +126,7 @@ void Image::save(const String& file_path) const
json_layer.add("locationx", layer.location().x());
json_layer.add("locationy", layer.location().y());
json_layer.add("opacity_percent", layer.opacity_percent());
- json_layer.add("visable", layer.is_visible());
+ json_layer.add("visible", layer.is_visible());
json_layer.add("selected", layer.is_selected());
json_layer.add("bitmap", encode_base64(bmp_dumber.dump(layer.bitmap())));
}