- if(polygon->num_strokes && polygon->strokes[0].num_points) {
- b.xmin = polygon->strokes[0].points[0].x*g;
- b.ymin = polygon->strokes[0].points[0].y*g;
- b.xmax = polygon->strokes[0].points[0].x*g;
- b.ymax = polygon->strokes[0].points[0].y*g;
+ if(polygon->strokes && polygon->strokes->num_points) {
+ b.xmin = polygon->strokes->points[0].x*g;
+ b.ymin = polygon->strokes->points[0].y*g;
+ b.xmax = polygon->strokes->points[0].x*g;
+ b.ymax = polygon->strokes->points[0].y*g;