From dd02fc12b47cffa77dbbc46575a33f851c974807 Mon Sep 17 00:00:00 2001 From: looooo Date: Wed, 1 Mar 2017 17:21:19 +0100 Subject: [PATCH] py3: Sketcher: remaining diff of python3-branch --- src/Mod/Sketcher/App/ConstraintPyImp.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/Mod/Sketcher/App/ConstraintPyImp.cpp b/src/Mod/Sketcher/App/ConstraintPyImp.cpp index 9f50e3369..31f6ad435 100644 --- a/src/Mod/Sketcher/App/ConstraintPyImp.cpp +++ b/src/Mod/Sketcher/App/ConstraintPyImp.cpp @@ -528,7 +528,11 @@ Py::Long ConstraintPy::getFirst(void) const void ConstraintPy::setFirst(Py::Long arg) { +#if PY_MAJOR_VERSION < 3 + this->getConstraintPtr()->First = Py::Int(arg); +#else this->getConstraintPtr()->First = arg; +#endif } Py::Long ConstraintPy::getSecond(void) const @@ -538,7 +542,11 @@ Py::Long ConstraintPy::getSecond(void) const void ConstraintPy::setSecond(Py::Long arg) { +#if PY_MAJOR_VERSION < 3 + this->getConstraintPtr()->Second = Py::Int(arg); +#else this->getConstraintPtr()->Second = arg; +#endif } Py::String ConstraintPy::getName(void) const