diff --git a/Packages/Snap_rounding_2/demo/Snap_rounding_2/demo.C b/Packages/Snap_rounding_2/demo/Snap_rounding_2/demo.C index 2a8e2be5d76..bb03318d6d1 100644 --- a/Packages/Snap_rounding_2/demo/Snap_rounding_2/demo.C +++ b/Packages/Snap_rounding_2/demo/Snap_rounding_2/demo.C @@ -30,12 +30,14 @@ void draw_orig(CGAL::Window_stream &w,std::list &seg_list) Point_2(1,1); - for(std::list::iterator iter = seg_list.begin();iter != seg_list.end();++iter) + for(std::list::iterator iter = seg_list.begin(); + iter != seg_list.end();++iter) w << *iter; } #endif -void read_data(int argc,char *argv[],Number_Type &prec,std::list &seg_list,bool &wait_for_click,int &number_of_kd_trees,bool &do_isr) +void read_data(int argc,char *argv[],Number_Type &prec,std::list &seg_list, + bool &wait_for_click,int &number_of_kd_trees,bool &do_isr) { int number_of_segments,i; CGAL::Segment_data seg; @@ -128,7 +130,9 @@ int main(int argc,char *argv[]) CGAL::Window_stream w(600,600); Number_Type x1,y1,x2,y2; get_extreme_points(seg_list,x1,y1,x2,y2); - w.init((x1 - prec * 2).to_double(),x2 - x1 > y2 - y1 ? (x2 + prec * 2).to_double() : (y2 - y1 + x1 + prec * 2).to_double(),(y1 - prec * 2).to_double()); + w.init((x1 - prec * 2).to_double(),x2 - x1 > y2 - y1 ? + (x2 + prec * 2).to_double() : (y2 - y1 + x1 + prec * 2).to_double(), + (y1 - prec * 2).to_double()); w.set_mode(leda_src_mode); w.set_node_width(3); w.button("Finish",1);