diff options
author | Uray M. János <uray.janos@gmail.com> | 2012-07-25 09:42:12 +0200 |
---|---|---|
committer | Noel Power <noel.power@novell.com> | 2012-07-25 14:11:06 +0100 |
commit | f5a625f61a4f0209a4ec74b919241593a56b5500 (patch) | |
tree | 5286d9b17e9c7c2f10a9d1aa11c369ceabeabf87 /svtools | |
parent | display bequeath indicator and date separator and format code (diff) | |
download | core-f5a625f61a4f0209a4ec74b919241593a56b5500.tar.gz core-f5a625f61a4f0209a4ec74b919241593a56b5500.zip |
fdo#40152 replace with empty string in Basic IDE
Change-Id: I2ee41160e5cb10694ccdb5a1cdaf7d4abfeb23bb
Diffstat (limited to 'svtools')
-rw-r--r-- | svtools/source/edit/textview.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index e03ef2e4b82f..481572b53e79 100644 --- a/svtools/source/edit/textview.cxx +++ b/svtools/source/edit/textview.cxx @@ -1367,7 +1367,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 ) ); @@ -1390,6 +1390,8 @@ void TextView::InsertNewText( const rtl::OUString& rStr, sal_Bool bSelect ) nLen -= nChunkLen; nPos += nChunkLen; } + while( nLen ); + mpImpl->mpTextEngine->UndoActionEnd(); mpImpl->mpTextEngine->FormatAndUpdate( this ); |