@@ -259,7 +259,7 @@ inline void points_in_path(PointArray &points,
259259 }
260260
261261 transformed_path_t trans_path (path, trans);
262- no_nans_t no_nans_path (trans_path, true , path.has_curves ());
262+ no_nans_t no_nans_path (trans_path, true , path.has_codes ());
263263 curve_t curved_path (no_nans_path);
264264 if (r != 0.0 ) {
265265 contour_t contoured_path (curved_path);
@@ -305,7 +305,7 @@ void points_on_path(PointArray &points,
305305 }
306306
307307 transformed_path_t trans_path (path, trans);
308- no_nans_t nan_removed_path (trans_path, true , path.has_curves ());
308+ no_nans_t nan_removed_path (trans_path, true , path.has_codes ());
309309 curve_t curved_path (nan_removed_path);
310310 stroke_t stroked_path (curved_path);
311311 stroked_path.width (r * 2.0 );
@@ -378,7 +378,7 @@ void update_path_extents(PathIterator &path, agg::trans_affine &trans, extent_li
378378 unsigned code;
379379
380380 transformed_path_t tpath (path, trans);
381- nan_removed_t nan_removed (tpath, true , path.has_curves ());
381+ nan_removed_t nan_removed (tpath, true , path.has_codes ());
382382
383383 nan_removed.rewind (0 );
384384
@@ -512,7 +512,7 @@ bool path_in_path(PathIterator1 &a,
512512 }
513513
514514 transformed_path_t b_path_trans (b, btrans);
515- no_nans_t b_no_nans (b_path_trans, true , b.has_curves ());
515+ no_nans_t b_no_nans (b_path_trans, true , b.has_codes ());
516516 curve_t b_curved (b_no_nans);
517517
518518 double x, y;
@@ -884,8 +884,8 @@ bool path_intersects_path(PathIterator1 &p1, PathIterator2 &p2)
884884 return false ;
885885 }
886886
887- no_nans_t n1 (p1, true , p1.has_curves ());
888- no_nans_t n2 (p2, true , p2.has_curves ());
887+ no_nans_t n1 (p1, true , p1.has_codes ());
888+ no_nans_t n2 (p2, true , p2.has_codes ());
889889
890890 curve_t c1 (n1);
891891 curve_t c2 (n2);
@@ -949,7 +949,7 @@ bool path_intersects_rectangle(PathIterator &path,
949949 return false ;
950950 }
951951
952- no_nans_t no_nans (path, true , path.has_curves ());
952+ no_nans_t no_nans (path, true , path.has_codes ());
953953 curve_t curve (no_nans);
954954
955955 double cx = (rect_x1 + rect_x2) * 0.5 , cy = (rect_y1 + rect_y2) * 0.5 ;
@@ -998,7 +998,7 @@ void convert_path_to_polygons(PathIterator &path,
998998 bool simplify = path.should_simplify ();
999999
10001000 transformed_path_t tpath (path, trans);
1001- nan_removal_t nan_removed (tpath, true , path.has_curves ());
1001+ nan_removal_t nan_removed (tpath, true , path.has_codes ());
10021002 clipped_t clipped (nan_removed, do_clip, width, height);
10031003 simplify_t simplified (clipped, simplify, path.simplify_threshold ());
10041004 curve_t curve (simplified);
@@ -1063,7 +1063,7 @@ void cleanup_path(PathIterator &path,
10631063 typedef Sketch<curve_t > sketch_t ;
10641064
10651065 transformed_path_t tpath (path, trans);
1066- nan_removal_t nan_removed (tpath, remove_nans, path.has_curves ());
1066+ nan_removal_t nan_removed (tpath, remove_nans, path.has_codes ());
10671067 clipped_t clipped (nan_removed, do_clip, rect);
10681068 snapped_t snapped (clipped, snap_mode, path.total_vertices (), stroke_width);
10691069 simplify_t simplified (snapped, do_simplify, path.simplify_threshold ());
@@ -1222,7 +1222,7 @@ bool convert_to_string(PathIterator &path,
12221222 bool do_clip = (clip_rect.x1 < clip_rect.x2 && clip_rect.y1 < clip_rect.y2 );
12231223
12241224 transformed_path_t tpath (path, trans);
1225- nan_removal_t nan_removed (tpath, true , path.has_curves ());
1225+ nan_removal_t nan_removed (tpath, true , path.has_codes ());
12261226 clipped_t clipped (nan_removed, do_clip, clip_rect);
12271227 simplify_t simplified (clipped, simplify, path.simplify_threshold ());
12281228
0 commit comments