]> OCCT Git - occt-copy.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)
committerabv <abv@opencascade.com>
Wed, 2 Sep 2015 11:39:14 +0000 (14:39 +0300)
Complete the fix: add gradient background in second variant of V3d_View::SetWindow()

src/V3d/V3d_View.cxx

index 4a13ffaa8b3e7a69b4b6af03a088eed285f112b6..bb2001041aff972be375fd8b1298993800b66425 100644 (file)
@@ -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() ;
 }