From 74e19a2f45148af335f36d0c3d7d87bd5762c1e3 Mon Sep 17 00:00:00 2001 From: rnv Date: Wed, 15 Feb 2017 17:15:31 +0300 Subject: [PATCH] Porting to DEV version of OpenCASCADE. --- src/HEXABLOCKGUI/HEXABLOCKGUI_OccGraphicView.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) 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(); } -- 2.39.2