From: vsv Date: Wed, 2 Nov 2016 08:51:04 +0000 (+0300) Subject: Issue #1126: Code error fix X-Git-Tag: V_2.6.0~132 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=2d8cc0c687c97f3c8d8277a1856e8829f2b98c44;p=modules%2Fshaper.git Issue #1126: Code error fix --- diff --git a/src/XGUI/XGUI_Workshop.cpp b/src/XGUI/XGUI_Workshop.cpp index 6892cfc6e..ef2aa7042 100755 --- a/src/XGUI/XGUI_Workshop.cpp +++ b/src/XGUI/XGUI_Workshop.cpp @@ -2072,7 +2072,6 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects) { FeaturePtr aFeature; QObjectPtrList aSelList = theObjects; - std::list aResList; bool aHasHidden = false; foreach(ObjectPtr aObj, theObjects) { aFeature = std::dynamic_pointer_cast(aObj); @@ -2080,7 +2079,7 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects) std::list aResults; ModelAPI_Tools::allResults(aFeature, aResults); std::list >::const_iterator aIt; - for(aIt = aResList.cbegin(); aIt != aResList.cend(); aIt++) { + for(aIt = aResults.cbegin(); aIt != aResults.cend(); aIt++) { aHasHidden |= (*aIt)->isConcealed(); aSelList.append(*aIt); }