diff options
Diffstat (limited to 'sw/source/uibase/shells/drwtxtsh.cxx')
-rw-r--r-- | sw/source/uibase/shells/drwtxtsh.cxx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/sw/source/uibase/shells/drwtxtsh.cxx b/sw/source/uibase/shells/drwtxtsh.cxx index 017c293cb673..71334558fe68 100644 --- a/sw/source/uibase/shells/drwtxtsh.cxx +++ b/sw/source/uibase/shells/drwtxtsh.cxx @@ -565,12 +565,12 @@ void SwDrawTextShell::StateUndo(SfxItemSet &rSet) } if( nCount ) { - OUString sList; + OUStringBuffer sList; for( sal_uInt16 n = 0; n < nCount; ++n ) - sList += (pUndoManager->*fnGetComment)( n, SfxUndoManager::TopLevel ) + "\n"; + sList.append( (pUndoManager->*fnGetComment)( n, SfxUndoManager::TopLevel ) ).append("\n"); SfxStringListItem aItem( nWhich ); - aItem.SetString( sList ); + aItem.SetString( sList.makeStringAndClear() ); rSet.Put( aItem ); } } |