svx/sw: set ruby position correctly in the ruby dialog.

Change-Id: I7ddce601bd7204e5696b601c6f8cd16619017aa2
Reviewed-on: https://gerrit.libreoffice.org/54881
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Mark Hung <marklh9@gmail.com>
This commit is contained in:
Mark Hung 2018-05-27 21:22:38 +08:00
parent 4534da9dab
commit 45cdce5509

View file

@ -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())