summaryrefslogtreecommitdiff
path: root/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
diff options
context:
space:
mode:
authorAndreas Kling <kling@serenityos.org>2021-06-15 01:23:50 +0200
committerAndreas Kling <kling@serenityos.org>2021-06-15 10:05:16 +0200
commiteb76b18ee3d1a6899176eb398ffc9f87ad21fd34 (patch)
treef15dbfefd94f1f775b8a3d0604059dfd08cd9fc7 /Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
parent8731bc9eade3d3cda9a7c097c2443d3c3acd383b (diff)
downloadserenity-eb76b18ee3d1a6899176eb398ffc9f87ad21fd34.zip
PixelPaint: Don't allow creating empty layers or images
Diffstat (limited to 'Userland/Applications/PixelPaint/CreateNewImageDialog.cpp')
-rw-r--r--Userland/Applications/PixelPaint/CreateNewImageDialog.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp b/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
index 1bd76917bb..01a7763455 100644
--- a/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
+++ b/Userland/Applications/PixelPaint/CreateNewImageDialog.cpp
@@ -64,8 +64,8 @@ CreateNewImageDialog::CreateNewImageDialog(GUI::Window* parent_window)
m_image_size.set_height(value);
};
- width_spinbox.set_range(0, 16384);
- height_spinbox.set_range(0, 16384);
+ width_spinbox.set_range(1, 16384);
+ height_spinbox.set_range(1, 16384);
}
}