From efd4e27488d9291b2efd4a7076d572d7765fb4dd Mon Sep 17 00:00:00 2001 From: Mischan Toosarani-Hausberger Date: Sat, 24 Aug 2019 17:13:00 +0200 Subject: [PATCH] dpoint mutates x-coord in y-property (see #1794) (#1866) --- tools/python/src/vector.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/python/src/vector.cpp b/tools/python/src/vector.cpp index 4457165ac..9c8e3ab93 100644 --- a/tools/python/src/vector.cpp +++ b/tools/python/src/vector.cpp @@ -457,7 +457,7 @@ void bind_vector(py::module& m) .def("__str__", &dpoint__str__) .def("normalize", &type::normalize, "Returns a unit normalized copy of this vector.") .def_property("x", &dpoint_x, [](dpoint& p, double x){p.x()=x;}, "The x-coordinate of the dpoint.") - .def_property("y", &dpoint_y, [](dpoint& p, double y){p.x()=y;}, "The y-coordinate of the dpoint.") + .def_property("y", &dpoint_y, [](dpoint& p, double y){p.y()=y;}, "The y-coordinate of the dpoint.") .def(py::self + py::self) .def(py::self - py::self) .def(py::self / double())