mirror of
https://github.com/aseprite/aseprite.git
synced 2024-11-20 14:21:45 +00:00
Added validation in "Grid Settings" dialog to avoid negative grid width/height.
This commit is contained in:
parent
befd81c63b
commit
8e62794da0
@ -154,6 +154,8 @@ void GridSettingsCommand::execute(Context* context)
|
||||
bounds.y = grid_y->getTextInt();
|
||||
bounds.w = grid_w->getTextInt();
|
||||
bounds.h = grid_h->getTextInt();
|
||||
bounds.w = MAX(bounds.w, 1);
|
||||
bounds.h = MAX(bounds.h, 1);
|
||||
|
||||
UIContext::instance()->getSettings()->setGridBounds(bounds);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user