diff options
Diffstat (limited to 'vcl/source/control/edit.cxx')
-rw-r--r-- | vcl/source/control/edit.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/vcl/source/control/edit.cxx b/vcl/source/control/edit.cxx index e36cdaf9a0df..cf8386903173 100644 --- a/vcl/source/control/edit.cxx +++ b/vcl/source/control/edit.cxx @@ -955,8 +955,7 @@ void Edit::ImplInsertText( const XubString& rStr, const Selection* pNewSel, sal_ pOldTxt[nChgPos] == pTmpTxt[nChgPos] ) ++nChgPos; - xub_StrLen nChgLen = static_cast< xub_StrLen >( nTmpLen - nChgPos ); - String aChgText( aTmpText.copy( nChgPos ), nChgLen ); + String aChgText( aTmpText.copy( nChgPos ) ); // remove text from first pos to be changed to current pos maText.Erase( static_cast< xub_StrLen >( nChgPos ), static_cast< xub_StrLen >( nTmpPos - nChgPos ) ); |