Corrected another instance where running a command on a non-

writeable cell causes magic to crash.
This commit is contained in:
Tim Edwards 2022-04-06 08:38:25 -04:00
parent a09fa78d2c
commit 44df4fc125
2 changed files with 7 additions and 1 deletions

View File

@ -1 +1 @@
8.3.287
8.3.288

View File

@ -103,6 +103,12 @@ CmdLabelProc(text, font, size, rotate, offx, offy, pos, sticky, type)
/* Make sure the box exists */
if (!ToolGetEditBox(&editBox)) return;
if (EditCellUse == NULL)
{
TxError("The current cell is not editable.\n");
return;
}
/* Make sure there's a valid string of text. */
if ((text == NULL) || (*text == 0))