svtools/source/edit/textview.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 2f28d991921468e745d16996bb0c6e84258c9c20 Author: Tsutomu Uchino <[email protected]> Date: Sat Jan 11 09:17:58 2014 +0000 #i106665# fix failed to replace with empty string on text view diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index fc9dae9..4558663 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -1378,7 +1378,7 @@ void TextView::InsertNewText( const rtl::OUString& rStr, sal_Bool bSelect ) */ sal_Int32 nLen = rStr.getLength(); sal_Int32 nPos = 0; - while( nLen ) + do { sal_Int32 nChunkLen = nLen > 65534 ? 65534 : nLen; String aChunk( rStr.copy( nPos, nChunkLen ) ); @@ -1400,7 +1400,7 @@ void TextView::InsertNewText( const rtl::OUString& rStr, sal_Bool bSelect ) ImpSetSelection( aNewSel ); nLen -= nChunkLen; nPos += nChunkLen; - } + } while( nLen ); mpImpl->mpTextEngine->UndoActionEnd(); mpImpl->mpTextEngine->FormatAndUpdate( this ); _______________________________________________ Libreoffice-commits mailing list [email protected] http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits
