diff options
-rw-r--r-- | sw/source/core/tox/ToxWhitespaceStripper.cxx | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/sw/source/core/tox/ToxWhitespaceStripper.cxx b/sw/source/core/tox/ToxWhitespaceStripper.cxx index fb9315862d6e..fc51a94c2e33 100644 --- a/sw/source/core/tox/ToxWhitespaceStripper.cxx +++ b/sw/source/core/tox/ToxWhitespaceStripper.cxx @@ -36,13 +36,11 @@ ToxWhitespaceStripper::ToxWhitespaceStripper(const OUString& inputString) } mNewPositions.push_back(buffer.getLength()-1); } - // Add one position if the position after the stripped string is requested, e.g., for attributes which - // extend beyond the string. - mNewPositions.push_back(buffer.getLength()); // strip the last whitespace (if there was one) if (lastCharacterWasWhitespace) { buffer.truncate(buffer.getLength() - 1); } + mNewPositions.push_back(buffer.getLength()); mStripped = buffer.getStr(); } |