Salome HOME
Porting to DEV version of OpenCASCADE. SHAPER_2.7.0 V8_3_0a2 V8_3_0b1
authorrnv <rnv@opencascade.com>
Wed, 15 Feb 2017 14:15:31 +0000 (17:15 +0300)
committerrnv <rnv@opencascade.com>
Wed, 15 Feb 2017 14:15:31 +0000 (17:15 +0300)
src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx

index 5d164a1c2b0af7f0e2d6a5db21ead06c33d9ce87..89e89bbaf2b06f53891944dc297dba1945179f41 100644 (file)
@@ -18,7 +18,6 @@
 //
 
 
-
 #include "HEXABLOCKGUI_OccGraphicView.hxx"
 #include "HEXABLOCKGUI.hxx"
 #include "HEXABLOCKGUI_VtkDocumentGraphicView.hxx"
@@ -42,7 +41,7 @@ OccGraphicView::OccGraphicView( OCCViewer_ViewWindow* view, QWidget* parent ):
     TopoDS_Shape shapeToPreview;
     previewShape = new AIS_Shape(shapeToPreview);
 //    previewShape->SetColor(Quantity_NOC_RED);
-    getContext()->SetColor( previewShape, Quantity_NOC_RED );
+    getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
 }
 
 void OccGraphicView::setSelectionMode(TopAbs_ShapeEnum mode)
@@ -318,7 +317,7 @@ void OccGraphicView::displayPreview(TopoDS_Shape& shape)
 
     previewShape->Set(shape);
 //    previewShape->SetColor(Quantity_NOC_RED);
-    getContext()->SetColor( previewShape, Quantity_NOC_RED );
+    getContext()->SetColor( previewShape, Quantity_NOC_RED, Standard_True );
     previewShape->Redisplay();
     vf->Repaint();
 }