@@ -209,7 +209,7 @@ inline void points_in_path(PointArray &points,
209209 typedef agg::conv_contour<curve_t > contour_t ;
210210
211211 size_t i;
212- for (i = 0 ; i < result .size (); ++i) {
212+ for (i = 0 ; i < points .size (); ++i) {
213213 result[i] = false ;
214214 }
215215
@@ -236,8 +236,8 @@ inline bool point_in_path(
236236 point.push_back (y);
237237 points.push_back (point);
238238
239- std::vector< bool > result ( 1 ) ;
240- result[0 ] = false ;
239+ int result[ 1 ] ;
240+ result[0 ] = 0 ;
241241
242242 points_in_path (points, r, path, trans, result);
243243
@@ -257,7 +257,7 @@ void points_on_path(PointArray &points,
257257 typedef agg::conv_stroke<curve_t > stroke_t ;
258258
259259 size_t i;
260- for (i = 0 ; i < result .size (); ++i) {
260+ for (i = 0 ; i < points .size (); ++i) {
261261 result[i] = false ;
262262 }
263263
@@ -279,8 +279,8 @@ inline bool point_on_path(
279279 point.push_back (y);
280280 points.push_back (point);
281281
282- std::vector< bool > result ( 1 ) ;
283- result[0 ] = false ;
282+ int result[ 1 ] ;
283+ result[0 ] = 0 ;
284284
285285 points_on_path (points, r, path, trans, result);
286286
@@ -406,7 +406,7 @@ void point_in_path_collection(double x,
406406 agg::trans_affine &offset_trans,
407407 bool filled,
408408 e_offset_position offset_position,
409- std::vector<size_t > &result)
409+ std::vector<int > &result)
410410{
411411 size_t Npaths = paths.size ();
412412
@@ -432,6 +432,7 @@ void point_in_path_collection(double x,
432432 subtrans (1 , 1 ),
433433 subtrans (0 , 2 ),
434434 subtrans (1 , 2 ));
435+ trans *= master_transform;
435436 } else {
436437 trans = master_transform;
437438 }
0 commit comments