Kaydet (Commit) f627ec85 authored tarafından Caolán McNamara's avatar Caolán McNamara Kaydeden (comit) Andras Timar

forcepoint #14 check to see if we incremented at all

Change-Id: Ia4670adbddcc8501cf522be296b3061a3529f880
Reviewed-on: https://gerrit.libreoffice.org/50607Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarMichael Stahl <mstahl@redhat.com>
(cherry picked from commit 31deb001)
üst e73f3631
...@@ -300,9 +300,12 @@ OUString WhitespaceToSpace( const OUString& rLine, bool bProtect ) ...@@ -300,9 +300,12 @@ OUString WhitespaceToSpace( const OUString& rLine, bool bProtect )
*pLeap = 0; *pLeap = 0;
// there might be a space at beginning or end // there might be a space at beginning or end
pLeap--; if (pLeap > pBuffer)
if( *pLeap == ' ' ) {
*pLeap = 0; pLeap--;
if( *pLeap == ' ' )
*pLeap = 0;
}
return OUString(*pBuffer == ' ' ? pBuffer+1 : pBuffer); return OUString(*pBuffer == ' ' ? pBuffer+1 : pBuffer);
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment