From 4f80fdfe82146aaa52fcee01ead7d10b496dbefa Mon Sep 17 00:00:00 2001 From: Guillaume Damiand Date: Fri, 18 Apr 2025 11:13:21 +0200 Subject: [PATCH] update draw mpwh2 --- Polygon/include/CGAL/draw_multipolygon_with_holes_2.h | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) 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