svtools/source/edit/textview.cxx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-)
New commits: commit f5a625f61a4f0209a4ec74b919241593a56b5500 Author: Uray M. János <uray.ja...@gmail.com> Date: Wed Jul 25 09:42:12 2012 +0200 fdo#40152 replace with empty string in Basic IDE Change-Id: I2ee41160e5cb10694ccdb5a1cdaf7d4abfeb23bb diff --git a/svtools/source/edit/textview.cxx b/svtools/source/edit/textview.cxx index e03ef2e..481572b 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 );
_______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org http://lists.freedesktop.org/mailman/listinfo/libreoffice-commits