diff options
Diffstat (limited to 'sw/source/filter/ww8/ww8graf.cxx')
-rw-r--r-- | sw/source/filter/ww8/ww8graf.cxx | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/sw/source/filter/ww8/ww8graf.cxx b/sw/source/filter/ww8/ww8graf.cxx index 26b1483f387e..ab53845a0a68 100644 --- a/sw/source/filter/ww8/ww8graf.cxx +++ b/sw/source/filter/ww8/ww8graf.cxx @@ -678,10 +678,10 @@ void SwWW8ImplReader::InsertAttrsAsDrawingAttrs(long nStartCp, long nEndCp, if (bSymbol == false && bDoingSymbol) { bDoingSymbol = false; - String sTemp; - sTemp.Fill(writer_cast<xub_StrLen>( - nTxtStart - nStartReplace), cReplaceSymbol); - mpDrawEditEngine->QuickInsertText(sTemp, + rtl::OUStringBuffer sTemp; + comphelper::string::padToLength(sTemp, + nTxtStart - nStartReplace, cReplaceSymbol); + mpDrawEditEngine->QuickInsertText(sTemp.makeStringAndClear(), GetESelection(nStartReplace - nStartCp, nTxtStart - nStartCp ) ); } |