From b322969752ed41c53e29e371c612d9341f19c6e0 Mon Sep 17 00:00:00 2001 From: "Zheng, Lei" Date: Fri, 28 Feb 2020 06:34:56 +0800 Subject: [PATCH] Gui: fix FreeCADGui.loadFile() --- src/Gui/ApplicationPy.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/ApplicationPy.cpp b/src/Gui/ApplicationPy.cpp index f0b02eea6c..cf059d2906 100644 --- a/src/Gui/ApplicationPy.cpp +++ b/src/Gui/ApplicationPy.cpp @@ -1502,7 +1502,7 @@ PyObject* Application::sLoadFile(PyObject * /*self*/, PyObject *args) } } - Application::Instance->open(path,mod); + Application::Instance->open(path,module.c_str()); Py_Return; } PY_CATCH