/* FIXME Relax this to first area type != second area type */
/* plus the additional AREA_LV checks needed */
- if ((first->areas[s].type != AREA_PV) ||
- (second->areas[s].type != AREA_PV))
+ if ((seg_type(first, s) != AREA_PV) ||
+ (seg_type(second, s) != AREA_PV))
return 0;
width = first->area_len;
seg1->area_len += seg2->area_len;
for (s = 0; s < seg1->area_count; s++)
- if (seg1->areas[s].type == AREA_PV)
+ if (seg_type(seg1, s) == AREA_PV)
merge_pv_segments(seg_pvseg(seg1, s),
seg_pvseg(seg2, s));