From a49ac1fcac6e3da73fe906e60f3b406a5c43c667 Mon Sep 17 00:00:00 2001 From: vsr Date: Fri, 24 Apr 2015 09:26:03 +0300 Subject: [PATCH] Minor code improvement for OCCT 6.9.0 --- src/OCCViewer/OCCViewer_CubeAxesDlg.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx index 2edcb4b6f..71a821d77 100644 --- a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx +++ b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx @@ -272,7 +272,7 @@ void OCCViewer_CubeAxesDlg::ApplyData( const Handle(V3d_View)& theView ) gt.SetGridColor(Quantity_NOC_WHITE); // grid color // axes params for ( int i = 0; i < 3; i++ ) { - Graphic3d_AxisAspect& aspect = ( i == 0 ? gt.ChangeXAxisAspect() : ( i == 1 ? gt.ChangeYAxisAspect() : gt.ChangeZAxisAspect() ) ); + Graphic3d_AxisAspect& aspect = gt.ChangeAxisAspect(i); aspect.SetName(anAxisData[i].Name.toLatin1().constData()); aspect.SetDrawName(anAxisData[i].DrawName); aspect.SetDrawValues(anAxisData[i].DrawValues); -- 2.39.2