diff options
author | don bright <hugh.m.bright@gmail.com> | 2012-07-20 06:49:27 (GMT) |
---|---|---|
committer | don bright <hugh.m.bright@gmail.com> | 2012-07-20 06:49:27 (GMT) |
commit | 4750709867e0f5743934a20250ca0990472b7a4f (patch) | |
tree | 7d930147a3123c5329c2a0f44fa7d878b5c89a25 /src/CGALEvaluator.cc | |
parent | c39c430ca0afd93a7b9199292fca5c613384441f (diff) |
fix crashbug, rept by MichaelAtOz, issue 148. add test.
Diffstat (limited to 'src/CGALEvaluator.cc')
-rw-r--r-- | src/CGALEvaluator.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/CGALEvaluator.cc b/src/CGALEvaluator.cc index a570df4..1b307be 100644 --- a/src/CGALEvaluator.cc +++ b/src/CGALEvaluator.cc @@ -253,7 +253,7 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node) testmat << node.matrix(0,0), node.matrix(0,1), node.matrix(1,0), node.matrix(1,1); if (testmat.determinant() == 0) { PRINT("Warning: Scaling a 2D object with 0 - removing object"); - N.p2.reset(); + N.reset(); } else { CGAL_Aff_transformation2 t( @@ -279,7 +279,7 @@ Response CGALEvaluator::visit(State &state, const TransformNode &node) else if (N.dim == 3) { if (node.matrix.matrix().determinant() == 0) { PRINT("Warning: Scaling a 3D object with 0 - removing object"); - N.p3.reset(); + N.reset(); } else { CGAL_Aff_transformation t( |