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: V6_9_1_beta~23 X-Git-Url: http://git.dev.opencascade.org/gitweb/?a=commitdiff_plain;h=e297ccbaa18a054843036c88afb7bd147fea5db8;p=occt-copy.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 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() ; }