From dc537c20a16de8e7b5d1ed271122b195cfbd6e0d Mon Sep 17 00:00:00 2001 From: jfa Date: Thu, 9 Aug 2007 10:18:19 +0000 Subject: [PATCH] NPAL16631: EDF281: Crash on update mesh if computation failed because of memory lack. --- src/SMESHGUI/SMESHGUI_ComputeDlg.cxx | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx index 3a9d29b3d..7ac3ba8a1 100644 --- a/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx +++ b/src/SMESHGUI/SMESHGUI_ComputeDlg.cxx @@ -839,14 +839,14 @@ void SMESHGUI_ComputeOp::startOperation() memoryLack = true; } - if ( !memoryLack ) + // NPAL16631: if ( !memoryLack ) { SMESH::ModifiedMesh(aMeshSObj, !computeFailed, aMesh->NbNodes() == 0); update( UF_ObjBrowser | UF_Model ); // SHOW MESH - try { - if ( getSMESHGUI()->automaticUpdate() ) { + if ( getSMESHGUI()->automaticUpdate() ) { + try { SVTK_ViewWindow* aVTKView = SMESH::GetViewWindow(getSMESHGUI(), true); if (aVTKView) { int anId = study()->id(); @@ -866,9 +866,9 @@ void SMESHGUI_ComputeOp::startOperation() } } } - } - catch (...) { - memoryLack = true; + catch (...) { + memoryLack = true; + } } } } -- 2.39.2