From: rnv Date: Wed, 15 Feb 2017 14:15:31 +0000 (+0300) Subject: Porting to DEV version of OpenCASCADE. X-Git-Tag: SHAPER_2.7.0 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=74e19a2f45148af335f36d0c3d7d87bd5762c1e3;p=modules%2Fhexablock.git Porting to DEV version of OpenCASCADE. --- diff --git a/src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx b/src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx index 5d164a1..89e89bb 100644 --- a/src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx +++ b/src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx @@ -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(); }