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:
Stephan Aßmus 2014-05-13 16:42:59 +02:00
parent 672d1fb48f
commit e443b44ab8

View File

@ -155,6 +155,9 @@ IFS::IFS(BRect bounds)
fAdditive(false),
fCurrentMarkValue(1)
{
if (!bounds.IsValid())
return;
ya_rand_init(system_time());
int i;