From: abv Date: Tue, 25 Aug 2015 08:17:18 +0000 (+0300) Subject: 0025775: "Default Gradient Backgound" in V3d_Viewer has no effect in new created... X-Git-Tag: V7_0_0_beta~346 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=ba38396ea166c63bf36218103554c959e7c3b8f7;p=occt.git 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() --- 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() ; }