summaryrefslogtreecommitdiff
path: root/src/primitives.cc
diff options
context:
space:
mode:
authorMarius Kintel <marius@kintel.net>2011-08-25 15:46:21 (GMT)
committerMarius Kintel <marius@kintel.net>2011-08-25 15:46:21 (GMT)
commit08c83d306ed838165546e55d8e91a8445b09ace3 (patch)
tree863b749cfe3a875a211062aa0281c648ef721d5e /src/primitives.cc
parentcb0fe366cf1947973728d50c06e3ed0e4261e109 (diff)
parenta32007e66c6004531f812befb20a96040b4dbbdd (diff)
Merge branch 'master' into visitor
Conflicts: src/primitives.cc
Diffstat (limited to 'src/primitives.cc')
-rw-r--r--src/primitives.cc2
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) {
contact: Jan Huwald // Impressum