diff options
author | Caolán McNamara <caolanm@redhat.com> | 2010-09-30 20:39:40 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2010-10-01 08:41:19 +0100 |
commit | 7340beab2257071a746bd18fe2fc3b47d969411e (patch) | |
tree | 5e543d670992802093580d832b5c3c60442fe888 /sw/source | |
parent | ea387b4ec80303a447a8ded7891f90edfd2f6135 (diff) |
&& || ambiguity in docfld.cxx
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/doc/docfld.cxx | 22 |
1 files changed, 12 insertions, 10 deletions
diff --git a/sw/source/core/doc/docfld.cxx b/sw/source/core/doc/docfld.cxx index fc1b7346e08d..1b576a87331e 100644 --- a/sw/source/core/doc/docfld.cxx +++ b/sw/source/core/doc/docfld.cxx @@ -2464,24 +2464,26 @@ void SwDocUpdtFld::_MakeFldList( SwDoc& rDoc, int eGetMode ) { SwDBData aDBData(((SwDBNumSetField*)pFld)->GetDBData(&rDoc)); - if( (bIsDBMgr && - rDoc.GetNewDBMgr()->OpenDataSource( aDBData.sDataSource, aDBData.sCommand ) && - GETFLD_ALL == eGetMode) || - ( GETFLD_CALC & eGetMode && - ((SwDBNumSetField*)pFld)->IsCondValid())) + if ( + (bIsDBMgr && rDoc.GetNewDBMgr()->OpenDataSource(aDBData.sDataSource, aDBData.sCommand)) && + (GETFLD_ALL == eGetMode || (GETFLD_CALC & eGetMode && ((SwDBNumSetField*)pFld)->IsCondValid())) + ) + { pFormel = &pFld->GetPar1(); + } } break; case RES_DBNEXTSETFLD: { SwDBData aDBData(((SwDBNextSetField*)pFld)->GetDBData(&rDoc)); - if( (bIsDBMgr && - rDoc.GetNewDBMgr()->OpenDataSource( aDBData.sDataSource, aDBData.sCommand ) && - GETFLD_ALL == eGetMode) || - ( GETFLD_CALC & eGetMode && - ((SwDBNextSetField*)pFld)->IsCondValid() )) + if ( + (bIsDBMgr && rDoc.GetNewDBMgr()->OpenDataSource(aDBData.sDataSource, aDBData.sCommand)) && + (GETFLD_ALL == eGetMode || (GETFLD_CALC & eGetMode && ((SwDBNextSetField*)pFld)->IsCondValid())) + ) + { pFormel = &pFld->GetPar1(); + } } break; } |