]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
0053079: SALOME crashes at Python Dump
authorskv <skv@opencascade.com>
Fri, 5 Feb 2016 14:03:36 +0000 (17:03 +0300)
committerskv <skv@opencascade.com>
Fri, 5 Feb 2016 14:03:36 +0000 (17:03 +0300)
src/GEOM/GEOM_Engine.cxx

index e7921bed45520072b77f5adaec1feb7d13c833ca..41be7c204759355bfbe06639a660505cd3ecd30d 100644 (file)
@@ -1278,7 +1278,10 @@ void FillMapOfRef(const Handle(GEOM_Function) &theFunction,
 
             const int aRefTag = GetTag(anObjEntry);
 
-            theRefMap[anObjTag].push_back(aRefTag);
+            if (anObjTag != aRefTag) {
+              // Avoid making references for operations without copy.
+              theRefMap[anObjTag].push_back(aRefTag);
+            }
           }
         }
       }