summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/core/text/txtfld.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/core/text/txtfld.cxx b/sw/source/core/text/txtfld.cxx
index e889ada8d8d4..795228efd5b3 100644
--- a/sw/source/core/text/txtfld.cxx
+++ b/sw/source/core/text/txtfld.cxx
@@ -446,12 +446,12 @@ static void checkApplyParagraphMarkFormatToNumbering(SwFont* pNumFnt, SwTextForm
// (non-existent) extra character at end of the text node, but there can be
// other hints too (ending at nTextLen), so look for all matching hints.
// Still the (non-existent) extra character at the end is preferred if it exists.
- if (pHint->Which() == RES_TXTATR_AUTOFMT
- && pHint->GetStart() == *pHint->End())
+ if (pHint->Which() == RES_TXTATR_AUTOFMT)
{
pSet = pHint->GetAutoFormat().GetStyleHandle();
// When we find an empty hint (start == end) we got what we are looking for.
- break;
+ if (pHint->GetStart() == *pHint->End())
+ break;
}
}
}