Salome HOME
Change default view mode of changeUnderlyingMesh to Replace instead of New Layout
authorChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 18 Nov 2020 09:51:30 +0000 (10:51 +0100)
committerChristophe Bourcier <christophe.bourcier@cea.fr>
Wed, 18 Nov 2020 09:51:30 +0000 (10:51 +0100)
src/MEDCalc/gui/WorkspaceController.cxx

index d7970fc495b7aa1f59c95f6250a8eab5601fd892..a376820e7a6a4b940ca234bfc10455e8aabb359d 100644 (file)
@@ -347,7 +347,7 @@ void WorkspaceController::processMedEvent(const MEDCALC::MedEvent* event) {
     commands += QString("mesh_id");
     commands += QString("field_id = medcalc.GetFirstFieldFromMesh(mesh_id)");
     commands += QString("field_id");
-    commands += QString("presentation_id = medcalc.MakeScalarMap(accessField(field_id), viewMode=MEDCALC.VIEW_MODE_NEW_LAYOUT)");
+    commands += QString("presentation_id = medcalc.MakeScalarMap(accessField(field_id), viewMode=MEDCALC.VIEW_MODE_REPLACE)");
     commands += QString("presentation_id");
     _consoleDriver->exec(commands);
   }