X-Git-Url: http://git.salome-platform.org/gitweb/?a=blobdiff_plain;f=src%2FOCCViewer%2FOCCViewer_CubeAxesDlg.cxx;h=96297b467badb5cc6b5fb8b9c68d3449ec90201d;hb=17d8905aa4ed5ff3805f3902b95046c520fd4206;hp=97c95a873b54f5b606e2b27ed7204eae32f2da84;hpb=ac54aa095cdaad4aa6a3f161e7c944bc0687c52b;p=modules%2Fgui.git diff --git a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx index 97c95a873..96297b467 100644 --- a/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx +++ b/src/OCCViewer/OCCViewer_CubeAxesDlg.cxx @@ -35,6 +35,8 @@ #include #include +#include + /*! \class OCCViewer_CubeAxesDlg::AxisWidget \brief Axis tab widget of the "Graduated axis" dialog box @@ -267,7 +269,11 @@ 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++ ) { +#if OCC_VERSION_LARGE < 0x07070000 Graphic3d_AxisAspect& aspect = gt.ChangeAxisAspect(i); +#else + Graphic3d_GraduatedTrihedron::AxisAspect& aspect = gt.ChangeAxisAspect(i); +#endif aspect.SetName(anAxisData[i].Name.toUtf8().constData()); aspect.SetDrawName(anAxisData[i].DrawName); aspect.SetDrawValues(anAxisData[i].DrawValues);