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:
parent
307965d53f
commit
e672706770
|
@ -641,6 +641,10 @@ void TextWindow::EditControlDone(char *s) {
|
||||||
Error("Can't repeat fewer than 1 time.");
|
Error("Can't repeat fewer than 1 time.");
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
if((int)ev > 999) {
|
||||||
|
Error("Can't repeat more than 999 times.");
|
||||||
|
break;
|
||||||
|
}
|
||||||
|
|
||||||
Group *g = SK.GetGroup(edit.group);
|
Group *g = SK.GetGroup(edit.group);
|
||||||
g->valA = ev;
|
g->valA = ev;
|
||||||
|
|
Loading…
Reference in New Issue
Block a user