From 44df4fc12590ee7f31be47800438add3e4a9cb08 Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Wed, 6 Apr 2022 08:38:25 -0400 Subject: [PATCH] Corrected another instance where running a command on a non- writeable cell causes magic to crash. --- VERSION | 2 +- commands/CmdLQ.c | 6 ++++++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 125c0199..25f64810 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -8.3.287 +8.3.288 diff --git a/commands/CmdLQ.c b/commands/CmdLQ.c index 7ab63727..6bd692cb 100644 --- a/commands/CmdLQ.c +++ b/commands/CmdLQ.c @@ -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))