summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/glbltree.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <cmc@openoffice.org>2010-07-21 11:45:15 +0100
committerCaolán McNamara <cmc@openoffice.org>2010-07-21 11:45:15 +0100
commit12e8f0b1f8b3df82f3c32ed7cb410dbbc43f01e7 (patch)
treee510d89ca764bcf2d9e9c2adb6a45a4d6b0dd516 /sw/source/ui/utlui/glbltree.cxx
parentdf31b7f41905931bc9b9dd07d84a353adc71d3db (diff)
cmcfixes77: #i113324# silence gcc warning
Diffstat (limited to 'sw/source/ui/utlui/glbltree.cxx')
-rw-r--r--sw/source/ui/utlui/glbltree.cxx19
1 files changed, 14 insertions, 5 deletions
diff --git a/sw/source/ui/utlui/glbltree.cxx b/sw/source/ui/utlui/glbltree.cxx
index e9b8fdf6feef..e221cf01376e 100644
--- a/sw/source/ui/utlui/glbltree.cxx
+++ b/sw/source/ui/utlui/glbltree.cxx
@@ -1241,11 +1241,20 @@ BOOL SwGlobalTree::Update(BOOL bHard)
GlobalDocContentType eType = pLeft->GetType();
SvLBoxEntry* pEntry = GetEntry(i);
String sTemp = GetEntryText(pEntry);
- if(eType != pRight->GetType() ||
- eType == GLBLDOC_SECTION &&
- (pLeft->GetSection()->GetSectionName() != sTemp) ||
- eType == GLBLDOC_TOXBASE && pLeft->GetTOX()->GetTitle() != sTemp)
- bCopy = bRet = TRUE;
+ if (
+ eType != pRight->GetType() ||
+ (
+ eType == GLBLDOC_SECTION &&
+ pLeft->GetSection()->GetSectionName() != sTemp
+ ) ||
+ (
+ eType == GLBLDOC_TOXBASE &&
+ pLeft->GetTOX()->GetTitle() != sTemp
+ )
+ )
+ {
+ bCopy = bRet = TRUE;
+ }
}
}
if(bCopy || bHard)