From f8f3ca45e77035f7e0a942940d7c538a48cafd74 Mon Sep 17 00:00:00 2001 From: Marius Kintel Date: Thu, 6 Feb 2014 01:49:11 -0500 Subject: fix related to 6a1d91dc76ec819e85b180b8cdaf40ddd639a538 diff --git a/src/mainwin.cc b/src/mainwin.cc index a64caa2..f6a04b7 100644 --- a/src/mainwin.cc +++ b/src/mainwin.cc @@ -1546,22 +1546,19 @@ void MainWindow::actionCheckValidity() { #ifdef ENABLE_CGAL setCurrentOutput(); - if (!this->root_geom) { + if (!this->root_N) { PRINT("Nothing to validate! Try building first (press F6)."); clearCurrentOutput(); return; } - if (this->root_geom->getDimension() != 3) { + if (this->root_N->dim != 3) { PRINT("Current top level object is not a 3D object."); clearCurrentOutput(); return; } - bool valid = false; - if (const CGAL_Nef_polyhedron *N = dynamic_cast(this->root_geom.get())) - valid = N->p3->is_valid(); - + bool valid = this->root_N->p3->is_valid(); PRINTB(" Valid: %6s", (valid ? "yes" : "no")); clearCurrentOutput(); #endif /* ENABLE_CGAL */ -- cgit v0.10.1