diff --git a/src/Gui/MDIViewPy.cpp b/src/Gui/MDIViewPy.cpp index 23b7a255d3..a196101b45 100644 --- a/src/Gui/MDIViewPy.cpp +++ b/src/Gui/MDIViewPy.cpp @@ -107,7 +107,7 @@ Py::Object MDIViewPy::repr() std::ostringstream s_out; if (!_view) throw Py::RuntimeError("Cannot print representation of deleted object"); - s_out << "MDIView"; + s_out << _view->getTypeId().getName(); return Py::String(s_out.str()); } diff --git a/src/Mod/Drawing/Gui/DrawingView.cpp b/src/Mod/Drawing/Gui/DrawingView.cpp index bca5828799..69bcded867 100644 --- a/src/Mod/Drawing/Gui/DrawingView.cpp +++ b/src/Mod/Drawing/Gui/DrawingView.cpp @@ -681,7 +681,7 @@ void DrawingView::viewAll() PyObject* DrawingView::getPyObject() { - Py_Return; + return Gui::MDIView::getPyObject(); } #include "moc_DrawingView.cpp"