summaryrefslogtreecommitdiff
path: root/core/fpdfdoc/cpvt_wordrange.h
diff options
context:
space:
mode:
Diffstat (limited to 'core/fpdfdoc/cpvt_wordrange.h')
-rw-r--r--core/fpdfdoc/cpvt_wordrange.h4
1 files changed, 1 insertions, 3 deletions
diff --git a/core/fpdfdoc/cpvt_wordrange.h b/core/fpdfdoc/cpvt_wordrange.h
index 638f6c17c0..5426154783 100644
--- a/core/fpdfdoc/cpvt_wordrange.h
+++ b/core/fpdfdoc/cpvt_wordrange.h
@@ -43,10 +43,8 @@ struct CPVT_WordRange {
}
CPVT_WordRange Intersect(const CPVT_WordRange& that) const {
- if (that.EndPos < BeginPos || that.BeginPos > EndPos ||
- EndPos < that.BeginPos || BeginPos > that.EndPos) {
+ if (that.EndPos < BeginPos || that.BeginPos > EndPos)
return CPVT_WordRange();
- }
return CPVT_WordRange(std::max(BeginPos, that.BeginPos),
std::min(EndPos, that.EndPos));