From: mpv Date: Fri, 11 Jan 2019 13:31:09 +0000 (+0300) Subject: Fix for #2834 : In Test2290.py, names have not been updated in group X-Git-Tag: Jan2019~26 X-Git-Url: http://git.salome-platform.org/gitweb/?a=commitdiff_plain;h=c726762e267b69c5764914db39c14353283c657f;p=modules%2Fshaper.git Fix for #2834 : In Test2290.py, names have not been updated in group --- diff --git a/src/ExchangePlugin/Test/Test2290.py b/src/ExchangePlugin/Test/Test2290.py index 04a0ca50a..4136c034f 100644 --- a/src/ExchangePlugin/Test/Test2290.py +++ b/src/ExchangePlugin/Test/Test2290.py @@ -27,8 +27,12 @@ Part_1_doc = Part_1.document() Box_1 = model.addBox(Part_1_doc, 5, 10, 10) Box_2 = model.addBox(Part_1_doc, 10, 50, 8) Partition_1 = model.addPartition(Part_1_doc, [model.selection("SOLID", "Box_2_1"), model.selection("SOLID", "Box_1_1")]) -Group_1 = model.addGroup(Part_1_doc, [model.selection("FACE", "Partition_1_1_3/Modified_Face_2_3"), model.selection("FACE", "Partition_1_1_1/Modified_Face_2_3")]) +Group_1 = model.addGroup(Part_1_doc, [model.selection("FACE", "Partition_1_1_1/Modified_Face&Box_1_1/Left&Box_2_1/Left"), model.selection("FACE", "Partition_1_1_3/Modified_Face&Box_1_1/Front")]) model.do() + +from ModelAPI import * +aFactory = ModelAPI_Session.get().validators() +assert(aFactory.validate(Group_1.feature())) # test export to XAO anExportFeature = Part_1_doc.addFeature("Export") anExportFeature.string("xao_file_path").setValue("Data/export2290.xao") diff --git a/src/Model/Model_AttributeSelection.cpp b/src/Model/Model_AttributeSelection.cpp index 5a1bdec60..00736a73e 100644 --- a/src/Model/Model_AttributeSelection.cpp +++ b/src/Model/Model_AttributeSelection.cpp @@ -1374,7 +1374,6 @@ void Model_AttributeSelection::updateInHistory() } ResultPtr aSetContext; - AttributeSelectionPtr aSetAttr; if (aFirst) { setValue(*aNewCont, aValueShape); aSetContext = context();