Salome HOME
Change default view mode of changeUnderlyingMesh to Replace instead of New Layout
[modules/med.git] / 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);
   }