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]
This commit is contained in:
Jonathan Westhues 2010-09-17 18:20:08 -08:00
parent 307965d53f
commit e672706770

View File

@ -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;