From 2d8cc0c687c97f3c8d8277a1856e8829f2b98c44 Mon Sep 17 00:00:00 2001 From: vsv Date: Wed, 2 Nov 2016 11:51:04 +0300 Subject: [PATCH] Issue #1126: Code error fix --- src/XGUI/XGUI_Workshop.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) 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); } -- 2.39.2