Kaydet (Commit) 9466ea1a authored tarafından Jim Raykowski's avatar Jim Raykowski Kaydeden (comit) Katarina Behrens

tdf#98212 make paragraph dialog alignment tab preview update

Change-Id: Ibd1d4f2c59bb832d6b2bba597e3f022c628e1887
Reviewed-on: https://gerrit.libreoffice.org/43577Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarKatarina Behrens <Katarina.Behrens@cib.de>
üst 377b8ee9
......@@ -1309,6 +1309,7 @@ IMPL_LINK_NOARG(SvxParaAlignTabPage, TextDirectionHdl_Impl, ListBox&, void)
SAL_WARN( "cui.tabpages", "SvxParaAlignTabPage::TextDirectionHdl_Impl(): other directions not supported" );
}
}
UpdateExample_Impl();
}
void SvxParaAlignTabPage::UpdateExample_Impl()
......@@ -1324,7 +1325,9 @@ void SvxParaAlignTabPage::UpdateExample_Impl()
m_pExampleWin->SetAdjust( SvxAdjust::Block );
SvxAdjust eLastBlock = SvxAdjust::Left;
sal_Int32 nLBPos = m_pLastLineLB->GetSelectedEntryPos();
if(nLBPos == 1)
if(nLBPos == 0 && m_pTextDirectionLB->GetSelectEntryValue() == SvxFrameDirection::Horizontal_RL_TB)
eLastBlock = SvxAdjust::Right;
else if(nLBPos == 1)
eLastBlock = SvxAdjust::Center;
else if(nLBPos == 2)
eLastBlock = SvxAdjust::Block;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment