From: azv Date: Wed, 8 Dec 2021 11:30:06 +0000 (+0300) Subject: Fix crash on export to CAD format a feature but not its result X-Git-Tag: V9_9_0a1~20 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=5b64b41c61abc1bcff07d8d7970912710fe83254;p=modules%2Fshaper.git Fix crash on export to CAD format a feature but not its result --- diff --git a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp index 1da829a6f..32d52205c 100644 --- a/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp +++ b/src/ExchangePlugin/ExchangePlugin_ExportFeature.cpp @@ -211,7 +211,7 @@ void ExchangePlugin_ExportFeature::exportFile(const std::string& theFileName, /// do not export pictures ResultPtr aBodyContext = std::dynamic_pointer_cast(anAttrSelection->context()); - if (aBodyContext->hasTexture()) + if (aBodyContext.get() && aBodyContext->hasTexture()) continue; std::shared_ptr aCurShape = anAttrSelection->value();