small optimization
This commit is contained in:
parent
f97b552eda
commit
ead91700c2
2 changed files with 2 additions and 2 deletions
|
@ -42,6 +42,5 @@ void export_image()
|
|||
.def("width",&Image32::width)
|
||||
.def("height",&Image32::height)
|
||||
;
|
||||
|
||||
def("rawdata",&rawdata);
|
||||
}
|
||||
|
|
|
@ -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)
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue