mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-01 18:00:26 +00:00
Fix Grid creation to return the new Grid instead of the default one
This commit is contained in:
parent
453d9c2168
commit
9910ab73f0
@ -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;
|
||||
|
Loading…
Reference in New Issue
Block a user