From 45cdce55093abb742e4e51de7a1542edd9b9e7b2 Mon Sep 17 00:00:00 2001 From: Mark Hung Date: Sun, 27 May 2018 21:22:38 +0800 Subject: [PATCH] svx/sw: set ruby position correctly in the ruby dialog. Change-Id: I7ddce601bd7204e5696b601c6f8cd16619017aa2 Reviewed-on: https://gerrit.libreoffice.org/54881 Tested-by: Jenkins Reviewed-by: Mark Hung --- svx/source/dialog/rubydialog.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/svx/source/dialog/rubydialog.cxx b/svx/source/dialog/rubydialog.cxx index 5981a76d2910..7d173aaa0974 100644 --- a/svx/source/dialog/rubydialog.cxx +++ b/svx/source/dialog/rubydialog.cxx @@ -501,7 +501,7 @@ void SvxRubyDialog::Update() else m_pAdjustLB->SetNoSelection(); if (nPosition > -1) - m_pPositionLB->SelectEntryPos(nPosition ? 1 : 0); + m_pPositionLB->SelectEntryPos(nPosition); if (!nLen || (bCharStyleEqual && sCharStyleName.isEmpty())) sCharStyleName = "Rubies"; if (!sCharStyleName.isEmpty())