summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--editeng/source/editeng/edtspell.cxx7
1 files changed, 1 insertions, 6 deletions
diff --git a/editeng/source/editeng/edtspell.cxx b/editeng/source/editeng/edtspell.cxx
index 63b402ffad53..81143ce33b5a 100644
--- a/editeng/source/editeng/edtspell.cxx
+++ b/editeng/source/editeng/edtspell.cxx
@@ -508,12 +508,7 @@ bool WrongList::DbgIsBuggy() const
{
for (WrongList::const_iterator j = i + 1; !bError && (j != maRanges.end()); ++j)
{
- // 1) Start before, End after the second Start
- if (i->mnStart <= j->mnStart && i->mnEnd >= j->mnStart)
- bError = true;
- // 2) Start after the second Start, but still before the second End
- else if (i->mnStart >= j->mnStart && i->mnStart <= j->mnEnd)
- bError = true;
+ bError = i->mnStart <= j->mnEnd && j->mnStart <= i->mnEnd;
}
}
return bError;