From 9910ab73f05a8473d5c978b75101daa91dc84cae Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Mart=C3=ADn=20Capello?= Date: Tue, 10 Jan 2023 11:53:21 -0300 Subject: [PATCH] Fix Grid creation to return the new Grid instead of the default one --- src/app/script/grid_class.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/script/grid_class.cpp b/src/app/script/grid_class.cpp index a473bcce1..ed8aac90d 100644 --- a/src/app/script/grid_class.cpp +++ b/src/app/script/grid_class.cpp @@ -30,7 +30,7 @@ doc::Grid Grid_new(lua_State* L, int index) // Convert Rectangle into a Grid else if (lua_istable(L, index)) { gfx::Rect rect = convert_args_into_rect(L, index); - doc::Grid grid(rect.size()); + grid = Grid(rect.size()); grid.origin(rect.origin()); } return grid;