summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2013-10-07 09:53:30 +0100
committerCaolán McNamara <caolanm@redhat.com>2013-10-07 11:46:57 +0100
commit511b3ce85ebb2261f5ea866efdb333eaf94c64f8 (patch)
tree1087c43f2d1f2e98e14fc8b91fc6626957ee10af /sw
parent6adddbc2a80456cc2ad3b62deada7ecd4a6cf641 (diff)
restore original nPos increment
b0caeafc1add0b52b3d7a9dc80f50080ba439f59 changed the logic of lcl_GetTokenToParaBreak slightly, from nPos+=1 to nPos+=2, which worries me a bit Change-Id: Ifb621a0bf8ea0705f39f35461449632c592e65e9
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/doc/docedt.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/core/doc/docedt.cxx b/sw/source/core/doc/docedt.cxx
index 9175145d8150..2734e7f09eae 100644
--- a/sw/source/core/doc/docedt.cxx
+++ b/sw/source/core/doc/docedt.cxx
@@ -2138,7 +2138,7 @@ static bool lcl_GetTokenToParaBreak( OUString& rStr, OUString& rRet, bool bRegEx
// Has this been escaped?
if( nPos && '\\' == rStr[nPos-1])
{
- nPos += sPara.getLength();
+ ++nPos;
if( nPos >= rStr.getLength() )
{
break;