Corrected another instance where running a command on a non-
writeable cell causes magic to crash.
This commit is contained in:
parent
a09fa78d2c
commit
44df4fc125
|
|
@ -103,6 +103,12 @@ CmdLabelProc(text, font, size, rotate, offx, offy, pos, sticky, type)
|
||||||
/* Make sure the box exists */
|
/* Make sure the box exists */
|
||||||
if (!ToolGetEditBox(&editBox)) return;
|
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. */
|
/* Make sure there's a valid string of text. */
|
||||||
|
|
||||||
if ((text == NULL) || (*text == 0))
|
if ((text == NULL) || (*text == 0))
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue