]> SALOME platform Git repositories - modules/geom.git/commitdiff
Salome HOME
[PY3] Fix Test Issue : EnumItem are not orderable
authorNicolas Geimer <nicolas.geimer@edf.fr>
Mon, 20 Mar 2017 17:00:29 +0000 (18:00 +0100)
committerNicolas Geimer <nicolas.geimer@edf.fr>
Mon, 20 Mar 2017 17:00:29 +0000 (18:00 +0100)
src/GEOM_SWIG/geomBuilder.py

index b367b58739c5f0307bcc76127080dd9afb730d30..3c7413b0feb5fc6e6df33e78a1cb791c53fe5b3f 100644 (file)
@@ -8144,8 +8144,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             # Example: see GEOM_TestAll.py
             if Limit == self.ShapeType["AUTO"]:
                 # automatic detection of the most appropriate shape limit type
-                lim = GEOM.SHAPE
-                for s in ListShapes: lim = min( lim, s.GetMaxShapeType() )
+                lim = GEOM.SHAPE._v
+                for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v )
                 Limit = EnumToLong(lim)
                 pass
             anObj = self.BoolOp.MakePartition(ListShapes, ListTools,
@@ -8217,8 +8217,8 @@ class geomBuilder(GEOM._objref_GEOM_Gen):
             """
             if Limit == self.ShapeType["AUTO"]:
                 # automatic detection of the most appropriate shape limit type
-                lim = GEOM.SHAPE
-                for s in ListShapes: lim = min( lim, s.GetMaxShapeType() )
+                lim = GEOM.SHAPE._v
+                for s in ListShapes: lim = min( lim, s.GetMaxShapeType()._v )
                 Limit = EnumToLong(lim)
                 pass
             anObj = self.BoolOp.MakePartitionNonSelfIntersectedShape(ListShapes, ListTools,