diff --git a/Periodic_2_triangulation_2/include/CGAL/draw_periodic_2_triangulation_2.h b/Periodic_2_triangulation_2/include/CGAL/draw_periodic_2_triangulation_2.h index ba7d22b4efb..b774e3a3662 100644 --- a/Periodic_2_triangulation_2/include/CGAL/draw_periodic_2_triangulation_2.h +++ b/Periodic_2_triangulation_2/include/CGAL/draw_periodic_2_triangulation_2.h @@ -220,14 +220,17 @@ void add_to_graphics_scene(const CGAL_P2T2_TYPE& p2t2, add_to_graphics_scene(p2t2, graphics_scene, gs_options); } -#if defined(CGAL_USE_BASIC_VIEWER_QT) - // Specialization of draw function template void draw(const CGAL_P2T2_TYPE& ap2t2, GSOptions& gs_options, const char* title="2D Periodic Triangulation Viewer") { + CGAL_USE(ap2t2); + CGAL_USE(gs_options); + CGAL_USE(title); + +#if defined(CGAL_USE_BASIC_VIEWER_QT) CGAL::Graphics_scene gs; add_to_graphics_scene(ap2t2, gs, gs_options); CGAL::Qt::QApplication_and_basic_viewer app(gs, title); @@ -264,6 +267,7 @@ void draw(const CGAL_P2T2_TYPE& ap2t2, // Then we run the app app.run(); } +#endif // CGAL_USE_BASIC_VIEWER_QT } template @@ -278,8 +282,6 @@ void draw(const CGAL_P2T2_TYPE& ap2t2, draw(ap2t2, gs_options, title); } -#endif // CGAL_USE_BASIC_VIEWER_QT - #undef CGAL_P2T2_TYPE } // namespace CGAL