Gui: in repr() of MDIViewPy write the typeid name

This commit is contained in:
wmayer
2021-11-21 15:44:06 +01:00
parent 8de5d37fba
commit cf337394a1
2 changed files with 2 additions and 2 deletions

View File

@@ -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());
}

View File

@@ -681,7 +681,7 @@ void DrawingView::viewAll()
PyObject* DrawingView::getPyObject()
{
Py_Return;
return Gui::MDIView::getPyObject();
}
#include "moc_DrawingView.cpp"