From 9663887da1b739d532014a73f03d8e21894b3a24 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=A9bastien=20Loriot?= Date: Wed, 30 Dec 2009 15:52:17 +0000 Subject: [PATCH] correct paper size function --- CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h b/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h index fcc52e876eb..15435a50d91 100644 --- a/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h +++ b/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h @@ -670,11 +670,7 @@ public: ipe::Vector get_paper_size() const { - #warning handle paper size - //~ if (ipelibVersion() >= 60028) - //~ return get_IpeletHelper()->StyleSheet()->findLayout().iPaperSize; - //~ else - return ipe::Vector(595,842); + return data_->iDoc->cascade()->findLayout()->iPaperSize; } struct Voronoi_from_tri{ //Class using stream to get the voronoi diagram