diff options
Diffstat (limited to 'src/primitives.cc')
-rw-r--r-- | src/primitives.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/primitives.cc b/src/primitives.cc index 3f88c75..4210e15 100644 --- a/src/primitives.cc +++ b/src/primitives.cc @@ -474,7 +474,7 @@ sphere_next_r2: } } - if (this->type == SQUARE) + if (this->type == SQUARE && x > 0 && y > 0) { double x1, x2, y1, y2; if (this->center) { |