diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2018-01-23 23:15:28 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2018-01-24 13:35:07 +0100 |
commit | 06cfd5a962f9d8d9462fc270f1b1f730c90bddfe (patch) | |
tree | 7e3c8065f03cb410d95fa4070ed1e4385298cbf2 /sw | |
parent | 844c92793c1399e2f14f671f964ea35e1bce24ac (diff) |
Remove presumably dead < USHRT_MAX checks
...which are proably obsolete since 17e2497b6c679c89af84f586b79194cf4e18f2ab
"INTEGRATION: CWS tl39: #i77024# chart2 with more than 26 columns" changed the
members of SwRangeDescriptor from sal_uInt16 to sal_Int32.
Change-Id: Ic383bc2d5f686af5b19a5ec2cd0351607958f672
Reviewed-on: https://gerrit.libreoffice.org/48470
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman@redhat.com>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/core/unocore/unotbl.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/unocore/unotbl.cxx b/sw/source/core/unocore/unotbl.cxx index 34d9e8766039..96cea290242c 100644 --- a/sw/source/core/unocore/unotbl.cxx +++ b/sw/source/core/unocore/unotbl.cxx @@ -2263,7 +2263,7 @@ uno::Reference<table::XCellRange> SwXTextTable::getCellRangeByPosition(sal_Int3 { SolarMutexGuard aGuard; SwFrameFormat* pFormat(GetFrameFormat()); - if(pFormat && nRight < USHRT_MAX && nBottom < USHRT_MAX && + if(pFormat && nLeft <= nRight && nTop <= nBottom && nLeft >= 0 && nRight >= 0 && nTop >= 0 && nBottom >= 0 ) { |