diff --git a/python/mapnik_stroke.cpp b/python/mapnik_stroke.cpp index ab468edc0..2bfea9efe 100644 --- a/python/mapnik_stroke.cpp +++ b/python/mapnik_stroke.cpp @@ -41,8 +41,9 @@ void export_stroke () class_("stroke",init<>()) .def(init()) - .def("color",&stroke::get_color,return_value_policy()) - .def("color",&stroke::set_color) + .add_property("color",make_function + (&stroke::get_color,return_value_policy()), + &stroke::set_color) .add_property("width",&stroke::get_width,&stroke::set_width) .add_property("opacity",&stroke::get_opacity,&stroke::set_opacity) .add_property("line_cap",&stroke::get_line_cap,&stroke::set_line_cap)