mirror of
https://github.com/javl/image2cpp.git
synced 2026-09-11 09:03:04 +00:00
Do not allow images sizes below 1 x 1 px
This commit is contained in:
+2
-2
@@ -702,7 +702,7 @@ function handleImageSelection(evt) {
|
||||
w.type = 'number';
|
||||
w.name = 'width';
|
||||
w.id = 'screenWidth';
|
||||
w.min = 0;
|
||||
w.min = 1;
|
||||
w.className = 'size-input';
|
||||
w.value = img.width;
|
||||
settings.screenWidth = img.width;
|
||||
@@ -716,7 +716,7 @@ function handleImageSelection(evt) {
|
||||
h.type = 'number';
|
||||
h.name = 'height';
|
||||
h.id = 'screenHeight';
|
||||
h.min = 0;
|
||||
h.min = 1;
|
||||
h.className = 'size-input';
|
||||
h.value = img.height;
|
||||
settings.screenHeight = img.height;
|
||||
|
||||
Reference in New Issue
Block a user