From 06f0c4f62f10e4fc04f0e2d65d6709de1339e492 Mon Sep 17 00:00:00 2001 From: dmv Date: Tue, 12 Jan 2010 15:32:37 +0000 Subject: [PATCH] correct debug messages --- src/SMESH/SMESH_Mesh.cxx | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/src/SMESH/SMESH_Mesh.cxx b/src/SMESH/SMESH_Mesh.cxx index d39700ed3..ea3beb9f0 100644 --- a/src/SMESH/SMESH_Mesh.cxx +++ b/src/SMESH/SMESH_Mesh.cxx @@ -538,7 +538,7 @@ SMESH_Hypothesis::Hypothesis_Status } if(MYDEBUG) subMesh->DumpAlgoState(true); - SCRUTE(ret); + if(MYDEBUG) SCRUTE(ret); return ret; } @@ -560,8 +560,10 @@ SMESH_Hypothesis::Hypothesis_Status throw SALOME_Exception(LOCALIZED("hypothesis does not exist")); SMESH_Hypothesis *anHyp = sc->mapHypothesis[anHypId]; - int hypType = anHyp->GetType(); - if(MYDEBUG) SCRUTE(hypType); + if(MYDEBUG) { + int hypType = anHyp->GetType(); + SCRUTE(hypType); + } // shape