From c8a048403a32f1d7c0ea22b5d519e44094783fa6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Lucio=20Andr=C3=A9s=20Illanes=20Albornoz?= Date: Fri, 25 Oct 2019 13:21:48 +0200 Subject: [PATCH] Hard-wire default canvas size on New to [100, 30]. --- libroar/RoarCanvasCommandsFile.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libroar/RoarCanvasCommandsFile.py b/libroar/RoarCanvasCommandsFile.py index 09bb3a3..13a45d0 100644 --- a/libroar/RoarCanvasCommandsFile.py +++ b/libroar/RoarCanvasCommandsFile.py @@ -247,7 +247,7 @@ class RoarCanvasCommandsFile(): def canvasImportEmpty(pathName): nonlocal newCanvasSize if newCanvasSize == None: - newCanvasSize = list(self.parentCanvas.canvas.size) + newCanvasSize = [100, 30] newMap = [[[*self.parentCanvas.brushColours, 0, " "] for x in range(newCanvasSize[0])] for y in range(newCanvasSize[1])] return (True, "", newMap, None, newCanvasSize) if self._promptSaveChanges():