From 1c7fe052d362f23d2b5556de5fd0b0d7101fb258 Mon Sep 17 00:00:00 2001 From: Maxime Gimeno Date: Tue, 16 Jul 2019 11:30:06 +0200 Subject: [PATCH] fix warning in CGAL_ipelets --- CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h b/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h index 853eecf880d..0c96182266d 100644 --- a/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h +++ b/CGAL_ipelets/include/CGAL/CGAL_Ipelet_base_v7.h @@ -66,7 +66,7 @@ namespace CGAL{ ipe::TSelect get_selection_type() const { return get_IpePage()->primarySelection()==-1 ? ipe::EPrimarySelected : ipe::ESecondarySelected;} //ipe6 compatibility void transform_selected_objects_(const IpeMatrix& tfm) const { - for (int i=0;icount();++i) + for (int i=0;i(get_IpePage()->count());++i) if (get_IpePage()->select(i)!=ipe::ENotSelected) get_IpePage()->transform(i,tfm); } @@ -276,7 +276,7 @@ public: return Iso_rectangle_2(); } - for (int i=0;icount();++i){ + for (int i=0;i(get_IpePage()->count());++i){ if (get_IpePage()->select(i)==ipe::ENotSelected) continue; @@ -308,7 +308,7 @@ public: create_polygon_with_holes(bool delete_underlying_polygons=false) const { std::list SSPqu; - for (int i=0;icount();++i){ + for (int i=0;i(get_IpePage()->count());++i){ if (get_IpePage()->select(i)!=ipe::ENotSelected && get_IpePage()->object(i)->asPath()->shape().subPath(0)->closed() ){ ipe::SubPath* ssp=new ipe::Curve(*get_IpePage()->object(i)->asPath()->shape().subPath(0)->asCurve()); SSPqu.push_back(ssp);