summaryrefslogtreecommitdiff
path: root/svtools
diff options
context:
space:
mode:
authorUray M. János <uray.janos@gmail.com>2012-07-25 09:42:12 +0200
committerNoel Power <noel.power@novell.com>2012-07-25 14:11:06 +0100
commitf5a625f61a4f0209a4ec74b919241593a56b5500 (patch)
tree5286d9b17e9c7c2f10a9d1aa11c369ceabeabf87 /svtools
parent425e18c231f4f030b278050809ea1fa1f51d4bf2 (diff)
fdo#40152 replace with empty string in Basic IDE
Change-Id: I2ee41160e5cb10694ccdb5a1cdaf7d4abfeb23bb
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 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 );