From: mpv Date: Mon, 12 Oct 2015 11:56:20 +0000 (+0300) Subject: Fix for the issue #1048 X-Git-Tag: V_1.4.0_demo2~5 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=a14e0b4435c39ab9bb062693c9c5b132a8463d2d;p=modules%2Fshaper.git Fix for the issue #1048 --- diff --git a/src/Model/Model_Document.cpp b/src/Model/Model_Document.cpp index 9a22410ec..2af4e964e 100644 --- a/src/Model/Model_Document.cpp +++ b/src/Model/Model_Document.cpp @@ -968,6 +968,17 @@ void Model_Document::setActive(const bool theFlag) std::list >::const_iterator aRes = aResList.begin(); for(; aRes != aResList.end(); aRes++) { ModelAPI_EventCreator::get()->sendUpdated(*aRes, aRedispEvent); + // #issue 1048: sub-compsolids also + ResultCompSolidPtr aCompRes = std::dynamic_pointer_cast(*aRes); + if (aCompRes.get()) { + int aNumSubs = aCompRes->numberOfSubs(); + for(int a = 0; a < aNumSubs; a++) { + ResultPtr aSub = aCompRes->subResult(a); + if (aSub.get()) { + ModelAPI_EventCreator::get()->sendUpdated(aSub, aRedispEvent); + } + } + } } } }