diff --git a/Polygon/include/CGAL/draw_multipolygon_with_holes_2.h b/Polygon/include/CGAL/draw_multipolygon_with_holes_2.h index e900e3042fa..2de4b27f41a 100644 --- a/Polygon/include/CGAL/draw_multipolygon_with_holes_2.h +++ b/Polygon/include/CGAL/draw_multipolygon_with_holes_2.h @@ -180,11 +180,17 @@ private: const Mpwh& m_mpwh; }; +#endif // CGAL_USE_BASIC_VIEWER_QT + // Specialization of draw function. template void draw(const CGAL::Multipolygon_with_holes_2& mpwh, const char* title = "Multipolygon_with_holes_2 Basic Viewer") { + CGAL_USE(mpwh); + CGAL_USE(title); + +#if defined(CGAL_USE_BASIC_VIEWER_QT) #if defined(CGAL_TEST_SUITE) bool cgal_test_suite = true; #else @@ -203,10 +209,9 @@ void draw(const CGAL::Multipolygon_with_holes_2& mpwh, mainwindow.show(); app.exec(); } +#endif // CGAL_USE_BASIC_VIEWER_QT } } // End namespace CGAL -#endif // CGAL_USE_BASIC_VIEWER_QT - #endif // CGAL_DRAW_MULTIPOLYGON_WITH_HOLES_2_H