diff options
author | Marius Kintel <marius@kintel.net> | 2011-12-23 20:14:12 (GMT) |
---|---|---|
committer | Marius Kintel <marius@kintel.net> | 2011-12-23 20:14:12 (GMT) |
commit | d6efe5cbcb99f7730b47b5945f305f08b5d21b94 (patch) | |
tree | eb429be5acf82a5710d9879dd5fd00b62f1788b7 /src/surface.cc | |
parent | 87ce149df2581361e8975bd1a0addf2b6ef61e3d (diff) | |
parent | 10c96326866c8256e82f0092a18f4f4e3ca06a74 (diff) |
Merge branch 'master' into boost_filesystem
Conflicts:
tests/CMakeLists.txt
Diffstat (limited to 'src/surface.cc')
-rw-r--r-- | src/surface.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/surface.cc b/src/surface.cc index 2af09dc..fe1c6aa 100644 --- a/src/surface.cc +++ b/src/surface.cc @@ -142,8 +142,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++) |