diff --git a/libsrc/geom2d/python_geom2d.cpp b/libsrc/geom2d/python_geom2d.cpp index 2d0cc543..e2089d3e 100644 --- a/libsrc/geom2d/python_geom2d.cpp +++ b/libsrc/geom2d/python_geom2d.cpp @@ -99,9 +99,9 @@ DLL_HEADER void ExportGeom2d(py::module &m) seg->bc = *intptr; else { - auto bcname = get(*bc); + auto bcname = get_if(&*bc); seg->bc = self.GetNSplines() + 1; - self.SetBCName(seg->bc, bcname); + self.SetBCName(seg->bc, *bcname); } } else