From: jfa Date: Mon, 13 Mar 2023 10:48:40 +0000 (+0000) Subject: Porting Salome to OCCT 7.7.0 X-Git-Tag: V9_11_0a1~14 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c0861430eadfbc55433269ea813ea798c1540a71;p=modules%2Fshaper.git Porting Salome to OCCT 7.7.0 --- diff --git a/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp b/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp index 3d0fe58e6..7e497ada8 100644 --- a/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp +++ b/src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp @@ -47,6 +47,8 @@ #include #include +#include + #include #include #include @@ -617,6 +619,12 @@ void FeaturesPlugin_Measurement::setupDimension(AISObjectPtr theDim) std::string aFont = Config_PropManager::string("Visualization", "dimension_font"); Handle(Prs3d_DimensionAspect) anAspect = aDim->DimensionAspect(); +#if OCC_VERSION_LARGE >= 0x07070000 + if (anAspect.IsNull()) { + aDim->Attributes()->SetupOwnDefaults(); + anAspect = aDim->DimensionAspect(); + } +#endif anAspect->MakeArrows3d(false); anAspect->MakeText3d(false); anAspect->MakeTextShaded(false);