From c0861430eadfbc55433269ea813ea798c1540a71 Mon Sep 17 00:00:00 2001 From: jfa Date: Mon, 13 Mar 2023 10:48:40 +0000 Subject: [PATCH] Porting Salome to OCCT 7.7.0 --- src/FeaturesPlugin/FeaturesPlugin_Measurement.cpp | 8 ++++++++ 1 file changed, 8 insertions(+) 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); -- 2.39.2