From e67270677031edf6c4311dc1e361c93f3147c877 Mon Sep 17 00:00:00 2001 From: Jonathan Westhues Date: Fri, 17 Sep 2010 18:20:08 -0800 Subject: [PATCH] Due to questionable decision to use copy-number values of 1000 and up for special things, the number of times that a group may be stepped is limited to 999. So avoid a crash by not letting the user specify more than that. [git-p4: depot-paths = "//depot/solvespace/": change = 2178] --- textscreens.cpp | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/textscreens.cpp b/textscreens.cpp index 8f57baf..c53b6e3 100644 --- a/textscreens.cpp +++ b/textscreens.cpp @@ -641,6 +641,10 @@ void TextWindow::EditControlDone(char *s) { Error("Can't repeat fewer than 1 time."); break; } + if((int)ev > 999) { + Error("Can't repeat more than 999 times."); + break; + } Group *g = SK.GetGroup(edit.group); g->valA = ev;