fix warning in CGAL_ipelets

This commit is contained in:
Maxime Gimeno 2019-07-16 11:30:06 +02:00
parent d200ad2748
commit 1c7fe052d3
1 changed files with 3 additions and 3 deletions

View File

@ -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;i<get_IpePage()->count();++i)
for (int i=0;i<static_cast<int>(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;i<get_IpePage()->count();++i){
for (int i=0;i<static_cast<int>(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<ipe::SubPath*> SSPqu;
for (int i=0;i<get_IpePage()->count();++i){
for (int i=0;i<static_cast<int>(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);