[Libreoffice-commits] core.git: sw/source
Stephan Bergmann
sbergman at redhat.com
Wed Jan 24 12:35:29 UTC 2018
sw/source/core/unocore/unotbl.cxx | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
New commits:
commit 06cfd5a962f9d8d9462fc270f1b1f730c90bddfe
Author: Stephan Bergmann <sbergman at redhat.com>
Date: Tue Jan 23 23:15:28 2018 +0100
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 at libreoffice.org>
Reviewed-by: Stephan Bergmann <sbergman at redhat.com>
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 )
{
More information about the Libreoffice-commits
mailing list