small optimization

This commit is contained in:
Artem Pavlenko 2006-03-31 08:55:35 +00:00
parent f97b552eda
commit ead91700c2
2 changed files with 2 additions and 2 deletions

View file

@ -41,7 +41,6 @@ void export_image()
class_<Image32>("Image","This class represents a 32 bit image.",init<int,int>())
.def("width",&Image32::width)
.def("height",&Image32::height)
;
;
def("rawdata",&rawdata);
}

View file

@ -197,6 +197,7 @@ namespace mapnik
int num_points=read_integer();
CoordinateArray ar(num_points);
read_coords(ar);
line->set_capacity(num_points);
line->move_to(ar[0].x,ar[0].y);
for (int i=1;i<num_points;++i)
{