summaryrefslogtreecommitdiff
path: root/svtools/source/edit/texteng.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svtools/source/edit/texteng.cxx')
-rw-r--r--svtools/source/edit/texteng.cxx2
1 files changed, 1 insertions, 1 deletions
diff --git a/svtools/source/edit/texteng.cxx b/svtools/source/edit/texteng.cxx
index 9ea2dcd18d4d..efce793b44b0 100644
--- a/svtools/source/edit/texteng.cxx
+++ b/svtools/source/edit/texteng.cxx
@@ -766,7 +766,7 @@ TextPaM TextEngine::ImpInsertText( sal_Unicode c, const TextSelection& rCurSel,
if ( IsUndoEnabled() && !IsInUndo() )
{
- TextUndoInsertChars* pNewUndo = new TextUndoInsertChars( this, aPaM, c );
+ TextUndoInsertChars* pNewUndo = new TextUndoInsertChars( this, aPaM, rtl::OUString(c) );
sal_Bool bTryMerge = ( !bDoOverwrite && ( c != ' ' ) ) ? sal_True : sal_False;
InsertUndo( pNewUndo, bTryMerge );
}