From: vsv Date: Wed, 29 Jan 2020 09:59:19 +0000 (+0300) Subject: Fix of regression with width of external projection X-Git-Tag: V9_5_0a1~56 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=1ce79713042ed0837ebe4cc752be1a38e821e36a;p=modules%2Fshaper.git Fix of regression with width of external projection --- diff --git a/src/PartSet/PartSet_SketcherMgr.cpp b/src/PartSet/PartSet_SketcherMgr.cpp index cb916284b..27f9bf8d6 100644 --- a/src/PartSet/PartSet_SketcherMgr.cpp +++ b/src/PartSet/PartSet_SketcherMgr.cpp @@ -2271,8 +2271,9 @@ void PartSet_SketcherMgr::customizeSketchPresentation(const ObjectPtr& theObject if (aShapeType != 6/*an edge*/ && aShapeType != 7/*a vertex*/ && aShapeType != 0/*compound*/) return; + int aWidth = Config_PropManager::integer("Visualization", "sketch_line_width"); if (isExternal(aFeature)) { - thePrs->setWidth(1); + thePrs->setWidth(isIncludeToResult(aFeature)? aWidth : 1); return; } std::string aKind = aFeature->getKind(); @@ -2286,7 +2287,6 @@ void PartSet_SketcherMgr::customizeSketchPresentation(const ObjectPtr& theObject thePrs->setLineStyle(SketchPlugin_SketchEntity::SKETCH_LINE_STYLE_AUXILIARY()); } else { - int aWidth = Config_PropManager::integer("Visualization", "sketch_line_width"); thePrs->setWidth(aWidth); thePrs->setLineStyle(SketchPlugin_SketchEntity::SKETCH_LINE_STYLE()); }