mirror of
https://github.com/RTimothyEdwards/magic.git
synced 2026-10-06 09:53:00 +02:00
Corrected another instance where running a command on a non-
writeable cell causes magic to crash.
This commit is contained in:
@@ -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))
|
||||
|
||||
Reference in New Issue
Block a user