]> SALOME platform Git repositories - modules/shaper.git/commitdiff
Salome HOME
Issue #1126: Code error fix
authorvsv <vitaly.smetannikov@opencascade.com>
Wed, 2 Nov 2016 08:51:04 +0000 (11:51 +0300)
committervsv <vitaly.smetannikov@opencascade.com>
Wed, 2 Nov 2016 08:51:04 +0000 (11:51 +0300)
src/XGUI/XGUI_Workshop.cpp

index 6892cfc6e86a8b41ad2b5460b4e1009e173b06f7..ef2aa704281f83ef31ccb23dc3e261c29b1ec4fb 100755 (executable)
@@ -2072,7 +2072,6 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects)
 {
   FeaturePtr aFeature;
   QObjectPtrList aSelList = theObjects;
-  std::list<ResultPtr> aResList;
   bool aHasHidden = false;
   foreach(ObjectPtr aObj, theObjects) {
     aFeature = std::dynamic_pointer_cast<ModelAPI_Feature>(aObj);
@@ -2080,7 +2079,7 @@ void XGUI_Workshop::highlightResults(const QObjectPtrList& theObjects)
       std::list<ResultPtr> aResults;
       ModelAPI_Tools::allResults(aFeature, aResults);
       std::list<std::shared_ptr<ModelAPI_Result> >::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);
       }