Fixed issue of canvas size limitations
This commit is contained in:
parent
bc26132ce9
commit
87c05de6e7
|
@ -18,6 +18,12 @@ const Startup = (() => {
|
|||
var height = Util.getValue('size-height' + splashPostfix);
|
||||
var selectedPalette = Util.getText('palette-button' + splashPostfix);
|
||||
|
||||
//Checks whether width and height values are not invalid
|
||||
if(width <= 0 || height <= 0) {
|
||||
alert("Please enter valid width and height");
|
||||
return;
|
||||
}
|
||||
|
||||
newPixel(FileManager.defaultLPE(width,height));
|
||||
resetInput();
|
||||
|
||||
|
|
Loading…
Reference in New Issue