diff --git a/commands/CmdE.c b/commands/CmdE.c index 9ddf2450..698d8ae8 100644 --- a/commands/CmdE.c +++ b/commands/CmdE.c @@ -625,6 +625,12 @@ CmdErase(w, cmd) if (!ToolGetEditBox(&editRect)) return; + if (EditCellUse == NULL) + { + TxError("No cell def being edited!\n"); + return; + } + /* * Erase with no arguments is the same as erasing * everything underneath the box tool (ie, painting space)