IFS: Prevent division by zero...
...when the BRect passed to the constructor is not valid. Should fix ticket #10832. Untested.
This commit is contained in:
parent
672d1fb48f
commit
e443b44ab8
@ -155,6 +155,9 @@ IFS::IFS(BRect bounds)
|
||||
fAdditive(false),
|
||||
fCurrentMarkValue(1)
|
||||
{
|
||||
if (!bounds.IsValid())
|
||||
return;
|
||||
|
||||
ya_rand_init(system_time());
|
||||
|
||||
int i;
|
||||
|
Loading…
x
Reference in New Issue
Block a user