small optimization
This commit is contained in:
parent
f97b552eda
commit
ead91700c2
2 changed files with 2 additions and 2 deletions
|
@ -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);
|
||||
}
|
||||
|
|
|
@ -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