mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-13 01:59:14 +03:00
PixelPaint: Don't allow creating empty layers or images
This commit is contained in:
parent
8731bc9ead
commit
eb76b18ee3
Notes:
sideshowbarker
2024-07-18 12:14:11 +09:00
Author: https://github.com/awesomekling Commit: https://github.com/SerenityOS/serenity/commit/eb76b18ee3d
@ -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);
|
||||
}
|
||||
|
||||
}
|
||||
|
@ -65,8 +65,8 @@ CreateNewLayerDialog::CreateNewLayerDialog(Gfx::IntSize const& suggested_size, G
|
||||
m_layer_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);
|
||||
|
||||
width_spinbox.set_value(suggested_size.width());
|
||||
height_spinbox.set_value(suggested_size.height());
|
||||
|
Loading…
Reference in New Issue
Block a user