summaryrefslogtreecommitdiff
path: root/sw/source/ui/utlui/glbltree.cxx
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2010-09-30 15:42:07 +0100
committerCaolán McNamara <caolanm@redhat.com>2010-09-30 15:42:07 +0100
commitfb44229a4ece747c446be8f7ddb4f1abd692059f (patch)
treea3e0b474f92bf22479b888aab2d4c83f13344b66 /sw/source/ui/utlui/glbltree.cxx
parent724bc042eb1313ca19ebb78aa620fd326162185d (diff)
#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)