mirror of
https://github.com/aseprite/aseprite.git
synced 2025-01-28 18:32:50 +00:00
Avoid crash if the "New Layer" menu item is configured to ask the layer name
This commit is contained in:
parent
556c621eeb
commit
872267dc9b
@ -234,11 +234,11 @@ void NewLayerCommand::onExecute(Context* context)
|
||||
if (window.closer() != window.ok())
|
||||
return;
|
||||
|
||||
pref.tileset.baseIndex(tilesetSelector->getInfo().baseIndex);
|
||||
|
||||
name = window.name()->text();
|
||||
if (tilesetSelector)
|
||||
if (tilesetSelector) {
|
||||
pref.tileset.baseIndex(tilesetSelector->getInfo().baseIndex);
|
||||
tilesetInfo = tilesetSelector->getInfo();
|
||||
}
|
||||
}
|
||||
#endif
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user