summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/surface.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/surface.cc b/src/surface.cc
index 1a5f9bd..39d1972 100644
--- a/src/surface.cc
+++ b/src/surface.cc
@@ -129,8 +129,8 @@ PolySet *SurfaceNode::evaluate_polyset(class PolySetEvaluator *) const
p->convexity = convexity;
- double ox = center ? -columns/2.0 : 0;
- double oy = center ? -lines/2.0 : 0;
+ double ox = center ? -(columns-1)/2.0 : 0;
+ double oy = center ? -(lines-1)/2.0 : 0;
for (int i = 1; i < lines; i++)
for (int j = 1; j < columns; j++)
contact: Jan Huwald // Impressum