From d08935d0c7547454a8211e807ecc0bfede5c9654 Mon Sep 17 00:00:00 2001 From: ouv Date: Mon, 17 Aug 2009 08:53:36 +0000 Subject: [PATCH] Issue 0020450: Two tiny modifications in SalomeApp_NoteBookDlg.cxx --- src/SalomeApp/SalomeApp_NoteBookDlg.cxx | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx index 6005d889a..84fd756e4 100644 --- a/src/SalomeApp/SalomeApp_NoteBookDlg.cxx +++ b/src/SalomeApp/SalomeApp_NoteBookDlg.cxx @@ -171,10 +171,10 @@ bool NoteBook_TableRow::CheckValue() { bool aResult = false; QString aValue = GetValue(); - if( (!aValue.isEmpty()) && - (IsRealValue(aValue)) || - IsIntegerValue(aValue)|| - IsBooleanValue(aValue)) + if(!aValue.isEmpty() && + (IsRealValue(aValue) || + IsIntegerValue(aValue) || + IsBooleanValue(aValue))) aResult = true; return aResult; @@ -220,7 +220,7 @@ bool NoteBook_TableRow::IsRealValue(const QString theValue, double* theResult) { bool aResult = false; double aDResult = theValue.toDouble(&aResult); - if(theResult) + if(aResult && theResult) *theResult = aDResult; return aResult; @@ -243,7 +243,7 @@ bool NoteBook_TableRow::IsBooleanValue(const QString theValue, bool* theResult){ aBResult = false; aResult = true; } - if(theResult) + if(aResult && theResult) *theResult = aBResult; return aResult; @@ -261,7 +261,7 @@ bool NoteBook_TableRow::IsIntegerValue(const QString theValue, int* theResult) int anIResult; anIResult = theValue.toInt(&aResult); - if(theResult) + if(aResult && theResult) *theResult = anIResult; return aResult; -- 2.39.2