summaryrefslogtreecommitdiffstats
path: root/sw/inc/splargs.hxx
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-12-04 11:28:44 +0200
committerNoel Grandin <noel@peralex.com>2013-12-04 11:29:15 +0200
commita073e81c3acb0c4aa3bc4fde146b6eb9869738e1 (patch)
tree8ef6db1cd30a2ad493a80c0aca61b289e92c07cd /sw/inc/splargs.hxx
parentconvert OutputDevice::HasGlyphs from xub_StrLen->sal_Int32 (diff)
downloadcore-a073e81c3acb0c4aa3bc4fde146b6eb9869738e1.tar.gz
core-a073e81c3acb0c4aa3bc4fde146b6eb9869738e1.zip
fix SwInterHyphInfo commit
fix for commit eb56848029a3b26a9d4f07a55364749e9e7d8339 "convert SwInterHyphInfo from xub_StrLen->sal_Int32" Change-Id: I197edf7d5558cd44200f8f04ba29f028fba25639
Diffstat (limited to 'sw/inc/splargs.hxx')
-rw-r--r--sw/inc/splargs.hxx2
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)
{ }