]> OCCT Git - occt.git/commitdiff
0025775: "Default Gradient Backgound" in V3d_Viewer has no effect in new created...
authorabv <abv@opencascade.com>
Tue, 25 Aug 2015 08:17:18 +0000 (11:17 +0300)
committerski <ski@opencascade.com>
Thu, 27 Aug 2015 10:06:52 +0000 (13:06 +0300)
Complete the fix: add gradient background in second variant of V3d_View::SetWindow()

src/V3d/V3d_View.cxx

index 818ec0713b60e43fd73f3bee88e006d500367a70..a2ada39917c50c5740638af476acbd9de6ca53e2 100644 (file)
@@ -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() ;
 }