Fixed a bug causing floating point errors on various editing tasks.

This commit is contained in:
utak3r
2005-06-04 12:35:09 +00:00
parent 4d31a7c21a
commit 3945eca85e
2 changed files with 6 additions and 2 deletions

View File

@ -404,8 +404,11 @@ begin
if FStop then
Exit;
if (i and $F = 0) then
Progress(i / nrbatches);
if ((i and $F) = 0) then
if nrbatches > 0 then
Progress(i / nrbatches)
else
Progress(0);
// generate points
{$IFDEF TESTVARIANT}