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:
@@ -155,6 +155,9 @@ IFS::IFS(BRect bounds)
|
|||||||
fAdditive(false),
|
fAdditive(false),
|
||||||
fCurrentMarkValue(1)
|
fCurrentMarkValue(1)
|
||||||
{
|
{
|
||||||
|
if (!bounds.IsValid())
|
||||||
|
return;
|
||||||
|
|
||||||
ya_rand_init(system_time());
|
ya_rand_init(system_time());
|
||||||
|
|
||||||
int i;
|
int i;
|
||||||
|
|||||||
Reference in New Issue
Block a user