Gui: force a redraw of the 3d view when creating it as otherwise on some systems the bottom and right side of the main window becomes black

This commit is contained in:
wmayer
2022-02-05 17:56:52 +01:00
parent dae81fa377
commit 6f3446d19e

View File

@@ -1787,6 +1787,7 @@ MDIView *Document::createView(const Base::Type& typeId)
view3D->setWindowModified(this->isModified());
view3D->setWindowIcon(QApplication::windowIcon());
view3D->resize(400, 300);
view3D->getViewer()->redraw();
if (!cameraSettings.empty()) {
const char *ppReturn = 0;