+ don't consider x,y from SEG_CLOSE (clipper init them to 0's)

This commit is contained in:
artemp 2013-02-28 14:49:25 -05:00
parent c0b4eda911
commit 918174c127

View file

@ -99,7 +99,7 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
{
frame->move_to(x,y);
}
else if (cm == SEG_LINETO || cm == SEG_CLOSE)
else if (cm == SEG_LINETO)
{
frame->line_to(x,y);
face_segments.push_back(segment_t(x0,y0,x,y));
@ -140,7 +140,7 @@ void agg_renderer<T>::process(building_symbolizer const& sym,
frame->move_to(x,y+height);
roof->move_to(x,y+height);
}
else if (cm == SEG_LINETO || cm == SEG_CLOSE)
else if (cm == SEG_LINETO)
{
frame->line_to(x,y+height);
roof->line_to(x,y+height);