From 8ae6131f2e9dd5b94e4b7f5b549b897496310dfa Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Fri, 30 Dec 2011 15:11:21 +0000 Subject: [PATCH] opti --- GraphicsView/include/CGAL/Qt/PainterOstream.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/GraphicsView/include/CGAL/Qt/PainterOstream.h b/GraphicsView/include/CGAL/Qt/PainterOstream.h index 807a6025fcd..516dce77a5e 100644 --- a/GraphicsView/include/CGAL/Qt/PainterOstream.h +++ b/GraphicsView/include/CGAL/Qt/PainterOstream.h @@ -154,12 +154,12 @@ public: void draw_parabola_segment(const Point_2& center, const Line_2& line, const Point_2& source, const Point_2& target) { - const Point_2 proj_source = line.projection(source); - const Point_2 proj_target = line.projection(target); - if (CGAL::collinear(proj_source,proj_target,center)) - qp->drawLine(convert(proj_source), convert(proj_target)); + if (CGAL::collinear(source,target,center)) + qp->drawLine(convert(source), convert(target)); else { + const Point_2 proj_source = line.projection(source); + const Point_2 proj_target = line.projection(target); const Point_2 intersection = circumcenter(proj_source, proj_target, center);