From a14e0b4435c39ab9bb062693c9c5b132a8463d2d Mon Sep 17 00:00:00 2001 From: mpv Date: Mon, 12 Oct 2015 14:56:20 +0300 Subject: [PATCH] Fix for the issue #1048 --- src/Model/Model_Document.cpp | 11 +++++++++++ 1 file changed, 11 insertions(+) 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); + } + } + } } } } -- 2.39.2