From 4535c33a192c63f20fa745201d37fdf49cb7f0bd Mon Sep 17 00:00:00 2001 From: Thien Hoang Date: Sun, 11 Aug 2019 10:55:19 +0700 Subject: [PATCH] Fix draw_linear_cell_complex.h --- .../include/CGAL/draw_linear_cell_complex.h | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h index a0a18378998..50699c24eda 100644 --- a/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h +++ b/Linear_cell_complex/include/CGAL/draw_linear_cell_complex.h @@ -384,10 +384,12 @@ template < unsigned int d_, unsigned int ambient_dim, template class Map, class Refs, - class Storage_> + class Storage_, + class DrawingFunctorLCC=DefaultDrawingFunctorLCC> void draw(const CGAL_LCC_TYPE& alcc, const char* title="LCC for CMap Basic Viewer", - bool nofill=false) + bool nofill=false, + const DrawingFunctorLCC& drawing_functor=DrawingFunctorLCC()) { #if defined(CGAL_TEST_SUITE) bool cgal_test_suite=true; @@ -400,9 +402,8 @@ void draw(const CGAL_LCC_TYPE& alcc, int argc=1; const char* argv[2]={"lccviewer","\0"}; QApplication app(argc,const_cast(argv)); - DefaultDrawingFunctorLCC fcolor; - SimpleLCCViewerQt - mainwindow(app.activeWindow(), &alcc, title, nofill, fcolor); + SimpleLCCViewerQt + mainwindow(app.activeWindow(), &alcc, title, nofill, drawing_functor); mainwindow.show(); app.exec(); }