summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorUray M. János <uray.janos@gmail.com>2012-07-25 09:42:12 +0200
committerAndras Timar <atimar@suse.com>2012-08-10 21:51:27 +0200
commit24ec879f63f1d6525a06e870bc02458ea28db9d0 (patch)
treebb0b65f9cc12a701c86b059bc99dea72e5ac3f31 /svtools
parentc0dd0edf2af6a3cd9fb2d71cc2a3ba14a22b855b (diff)
fdo#40152 replace with empty string in Basic IDE
Change-Id: I2ee41160e5cb10694ccdb5a1cdaf7d4abfeb23bb Signed-off-by: Andras Timar <atimar@suse.com>
Diffstat (limited to 'svtools')
-rw-r--r--svtools/source/edit/textview.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx
index 75dbb5f77539..975b8dffdfce 100644
--- a/svtools/source/edit/textview.cxx
+++ b/svtools/source/edit/textview.cxx
@@ -1369,7 +1369,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 ) );
@@ -1392,6 +1392,8 @@ void TextView::InsertNewText( const rtl::OUString& rStr, sal_Bool bSelect )
nLen -= nChunkLen;
nPos += nChunkLen;
}
+ while( nLen );
+
mpImpl->mpTextEngine->UndoActionEnd();
mpImpl->mpTextEngine->FormatAndUpdate( this );