More updates to prevent magic from crashing when commands are run

on non-edit cells (this time, "erase").
This commit is contained in:
Tim Edwards 2021-11-12 13:57:26 -05:00
parent 898783467c
commit bee0039e43
1 changed files with 6 additions and 0 deletions

View File

@ -625,6 +625,12 @@ CmdErase(w, cmd)
if (!ToolGetEditBox(&editRect)) return; if (!ToolGetEditBox(&editRect)) return;
if (EditCellUse == NULL)
{
TxError("No cell def being edited!\n");
return;
}
/* /*
* Erase with no arguments is the same as erasing * Erase with no arguments is the same as erasing
* everything underneath the box tool (ie, painting space) * everything underneath the box tool (ie, painting space)