summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorErich Eckner <git@eckner.net>2016-01-29 08:47:43 +0100
committerErich Eckner <git@eckner.net>2016-01-29 08:47:43 +0100
commit355c60f9af089166acf4547d9ca3fa219a713e1d (patch)
tree50df27e69a29fd4ca38c8ef443a379b5d1e7d471
parent8916479767e9c3a508a7a1bc3d04d19ac9bebe3a (diff)
downloadFilterBruteForce-355c60f9af089166acf4547d9ca3fa219a713e1d.tar.xz
freies Editieren fängt nun ungültige Zahlen ab
-rw-r--r--unit2.pas7
1 files changed, 6 insertions, 1 deletions
diff --git a/unit2.pas b/unit2.pas
index eb2f2b6..454d30a 100644
--- a/unit2.pas
+++ b/unit2.pas
@@ -522,7 +522,12 @@ begin
break;
end;
setlength(tmpVals,length(tmpVals)+1);
- tmpVals[length(tmpVals)-1]:=strToScientific(leftStr(_cs[i],length(_cs[i])-1));
+ try
+ tmpVals[length(tmpVals)-1]:=strToScientific(leftStr(_cs[i],length(_cs[i])-1));
+ except
+ setlength(tmpVals,length(tmpVals)-1);
+ continue;
+ end;
acs.add(tmpVals[length(tmpVals)-1],1);
end;
if length(tmpVals)<ordnung then begin