diff options
Diffstat (limited to 'svx/source/dialog')
-rw-r--r-- | svx/source/dialog/rubydialog.cxx | 6 |
1 files changed, 1 insertions, 5 deletions
diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 135090c87211..3abd7e9b3517 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -741,11 +741,7 @@ void RubyPreview::Paint(vcl::RenderContext& rRenderContext, const tools::Rectang sal_Int16 nRubyPos = m_pParentDlg->m_xPositionLB->get_active(); if (nRubyPos == 1) // BOTTOM - { - tools::Long nTmp = nYRuby; - nYRuby = nYBase; - nYBase = nTmp; - } + std::swap(nYRuby, nYBase); else if (nRubyPos == 2) // RIGHT ( vertically ) { // Align the ruby text and base text to the vertical center. |