From 55b3dec33d51ee7993cd0bb7e41a63b0295587ac Mon Sep 17 00:00:00 2001 From: salome <> Date: Mon, 17 Jul 2006 10:37:08 +0000 Subject: [PATCH] =?utf8?q?autorisation=20s=C3=A9lection=20groupes=20de=20m?= =?utf8?q?aille=20sans=20g=C3=A9om=C3=A9trie=20principale=20(=20bug=20id?= =?utf8?q?=3D136=20)?= MIME-Version: 1.0 Content-Type: text/plain; charset=utf8 Content-Transfer-Encoding: 8bit --- src/EFICASGUI/eficasSalome.py | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/src/EFICASGUI/eficasSalome.py b/src/EFICASGUI/eficasSalome.py index a252c566..2b453790 100644 --- a/src/EFICASGUI/eficasSalome.py +++ b/src/EFICASGUI/eficasSalome.py @@ -311,14 +311,21 @@ class MyEficas( Tkinter.Toplevel, eficas.EFICAS ): if selectedMainShapeEntry: #test 2) if not self.mainShapeEntries.has_key( jdcID ): - self.mainShapeEntries[ jdcID ] = selectedMainShapeEntry + self.mainShapeEntries[ jdcID ] = selectedMainShapeEntry + name = studyManager.palStudy.getName( selectedMainShapeEntry ) + msgError = msgMainShapeSelection + name if selectedMainShapeEntry == self.mainShapeEntries[ jdcID ]: name = studyManager.palStudy.getName( selectedEntry ) #ok test 2) else: if not self.mainShapeNames.has_key( jdcID ): self.mainShapeNames[ jdcID ] = studyManager.palStudy.getName( self.mainShapeEntries[ jdcID ] ) - msgError = msgMeshGroupBadMainShape + self.mainShapeNames[ jdcID ] + msgError = msgMeshGroupBadMainShape + self.mainShapeNames[ jdcID ] + else: + # on authorise quand même les groupes de maillage ne faisant + # pas référence à une géométrie principale (dixit CS_CBO ) + name = studyManager.palStudy.getName( selectedEntry ) + return name, msgError -- 2.39.2