From ba38396ea166c63bf36218103554c959e7c3b8f7 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 818ec0713b..a2ada39917 100644 --- a/src/V3d/V3d_View.cxx +++ b/src/V3d/V3d_View.cxx @@ -326,6 +326,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() ; }