From d5c660832a0eb9d2f2ac89169255f853588ec6eb Mon Sep 17 00:00:00 2001 From: Laurent Rineau Date: Wed, 1 Dec 2010 10:51:04 +0000 Subject: [PATCH] Fix compilation error after one of my previous commits (about mirror_edge). --- .../include/CGAL/Kinetic/IO/Qt_triangulation_2.h | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) diff --git a/Kinetic_data_structures/include/CGAL/Kinetic/IO/Qt_triangulation_2.h b/Kinetic_data_structures/include/CGAL/Kinetic/IO/Qt_triangulation_2.h index e87335b95f3..a9f17e7d9d5 100644 --- a/Kinetic_data_structures/include/CGAL/Kinetic/IO/Qt_triangulation_2.h +++ b/Kinetic_data_structures/include/CGAL/Kinetic/IO/Qt_triangulation_2.h @@ -68,7 +68,8 @@ protected: */ template - void set_color(const Edge &e, CGAL::Qt_widget &w, const V &) const { + void set_color(const Triangulation &, + const Edge &e, CGAL::Qt_widget &w, const V &) const { if (!kdel_->has_event(e)) { w << CGAL::Color(125,125,125); } else if (kdel_->has_finite_event(e)){ @@ -80,12 +81,13 @@ protected: typedef Delaunay_triangulation_recent_edges_visitor_2 REV; - void set_color(const Edge &e, CGAL::Qt_widget &w, + void set_color(const Triangulation &tri, + const Edge &e, CGAL::Qt_widget &w, const REV& ) const { w << CGAL::LineWidth(2); if (!kdel_->has_event(e)) { w << CGAL::Color(125,125,125); - } else if (kdel_->visitor().contains(e) || kdel_->visitor().contains(TDS_helper::mirror_edge(e))) { + } else if (kdel_->visitor().contains(e) || kdel_->visitor().contains(tri.mirror_edge(e))) { w<< CGAL::Color(0,255,0); } else if (kdel_->has_finite_event(e)){ w << CGAL::Color(125,125,125); @@ -115,7 +117,7 @@ protected: Static_point p0= cc(fit->first->vertex((fit->second+1)%3)->point()); Static_point p1= cc(fit->first->vertex((fit->second+2)%3)->point()); Static_segment ss(p0, p1); - set_color(*fit, w, kdel_->visitor()); + set_color(tri, *fit, w, kdel_->visitor()); w << ss; } }