summaryrefslogtreecommitdiff
path: root/svx/source/dialog/rubydialog.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'svx/source/dialog/rubydialog.cxx')
-rw-r--r--svx/source/dialog/rubydialog.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx
index 9ad1db82b843..b578b858b333 100644
--- a/svx/source/dialog/rubydialog.cxx
+++ b/svx/source/dialog/rubydialog.cxx
@@ -873,9 +873,9 @@ void RubyPreview::Paint( const Rectangle& /* rRect */ )
long nSpace = ((nRightEnd - nLeftStart) - GetTextWidth(sOutputText)) / (nCount - 1);
for(xub_StrLen i = 0; i < nCount; i++)
{
- sal_Unicode cChar = sOutputText.GetChar(i);
- DrawText( Point( nLeftStart , nYOutput), cChar);
- long nCharWidth = GetTextWidth(cChar);
+ rtl::OUString sChar(sOutputText.GetChar(i));
+ DrawText( Point( nLeftStart , nYOutput), sChar);
+ long nCharWidth = GetTextWidth(sChar);
nLeftStart += nCharWidth + nSpace;
}
break;