diff options
author | Noel Grandin <noel@peralex.com> | 2013-12-04 11:28:44 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2013-12-04 11:29:15 +0200 |
commit | a073e81c3acb0c4aa3bc4fde146b6eb9869738e1 (patch) | |
tree | 8ef6db1cd30a2ad493a80c0aca61b289e92c07cd /sw | |
parent | b273106226ab7e21f68b9e0470e8b28b27f6b726 (diff) |
fix SwInterHyphInfo commit
fix for commit eb56848029a3b26a9d4f07a55364749e9e7d8339
"convert SwInterHyphInfo from xub_StrLen->sal_Int32"
Change-Id: I197edf7d5558cd44200f8f04ba29f028fba25639
Diffstat (limited to 'sw')
-rw-r--r-- | sw/inc/splargs.hxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/inc/splargs.hxx b/sw/inc/splargs.hxx index 0210ad52fb0d..9b56a218e248 100644 --- a/sw/inc/splargs.hxx +++ b/sw/inc/splargs.hxx @@ -144,7 +144,7 @@ public: : aCrsrPos( rCrsrPos ), bNoLang(sal_False), bCheck(sal_False), nStart(nStartPos), - nEnd( std::max(SAL_MAX_INT32, nStartPos + nLength) ), + nEnd( nLength == SAL_MAX_INT32 ? SAL_MAX_INT32 : (std::min(SAL_MAX_INT32, nStartPos + nLength)) ), nWordStart(0), nWordLen(0), nHyphPos(0), nMinTrail(0) { } |