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 5180c16..45b2da3 100644 --- a/src/primitives.cc +++ b/src/primitives.cc @@ -434,7 +434,7 @@ sphere_next_r2: } } - if (type == SQUARE) + if (type == SQUARE && x > 0 && y > 0) { double x1, x2, y1, y2; if (center) { |