From e297ccbaa18a054843036c88afb7bd147fea5db8 Mon Sep 17 00:00:00 2001 From: abv Date: Tue, 25 Aug 2015 11:17:18 +0300 Subject: [PATCH] 0025775: "Default Gradient Backgound" in V3d_Viewer has no effect in new created V3d_View. Complete the fix: add gradient background in second variant of V3d_View::SetWindow() --- src/V3d/V3d_View.cxx | 1 + 1 file changed, 1 insertion(+) diff --git a/src/V3d/V3d_View.cxx b/src/V3d/V3d_View.cxx index 4a13ffaa8b..bb2001041a 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -325,6 +325,7 @@ void V3d_View::SetWindow(const Handle(Aspect_Window)& aWindow, MyView->SetWindow(aWindow, aContext, aDisplayCB, aClientData) ; MyView->SetContext(MyViewContext) ; MyView->SetBackground(MyBackground) ; + MyView->SetGradientBackground (MyGradientBackground, Standard_False); MyViewer->SetViewOn(this) ; MyView->Redraw() ; } -- 2.39.5