From fa8daef5219a2ab82e4bd97e1ae1b312d91b4631 Mon Sep 17 00:00:00 2001 From: wmayer Date: Fri, 28 Apr 2023 10:40:13 +0200 Subject: [PATCH] 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 --- src/Gui/Document.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Gui/Document.cpp b/src/Gui/Document.cpp index 324b1c6b7b..ed84eb045b 100644 --- a/src/Gui/Document.cpp +++ b/src/Gui/Document.cpp @@ -1775,7 +1775,6 @@ 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 = nullptr; @@ -1783,6 +1782,7 @@ MDIView *Document::createView(const Base::Type& typeId) } getMainWindow()->addWindow(view3D); + view3D->getViewer()->redraw(); return view3D; } return nullptr;