This is my fault, unluckily I won't be able to work on that until this late evening. If someone can work on that, the (untested) fix for line 2122 should be something like: nBorderLen = std::min<sal_Int32>( 3, std::min( nPar1Len, nPar2Len ) ); Sorry for this Matteo