From 14032f05ac9cd8558c9e8e09f129950836b9cf3b Mon Sep 17 00:00:00 2001 From: Tim Edwards Date: Mon, 15 Feb 2021 10:52:13 -0500 Subject: [PATCH] Corrected error that can cause a crash on "library copy" if nothing is selected. --- VERSION | 2 +- libraries.c | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/VERSION b/VERSION index 6b26669..ab33b0b 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -3.10.30 +3.10.31 diff --git a/libraries.c b/libraries.c index 7962d7b..a7dc41a 100644 --- a/libraries.c +++ b/libraries.c @@ -1407,6 +1407,9 @@ void copycat() int i, libnum; char *cptr; + /* Return if nothing is selected */ + if (areawin->selects == 0) return; + libnum = is_library(topobject); if (libnum < 0) libnum = USERLIB - LIBRARY; /* default */ -- 2.11.4.GIT