diff options
author | Jim Raykowski <raykowj@gmail.com> | 2017-10-19 10:44:21 -0800 |
---|---|---|
committer | Katarina Behrens <Katarina.Behrens@cib.de> | 2017-10-20 10:37:03 +0200 |
commit | 9466ea1af09c275f423b0d5c1ad929984ed998b3 (patch) | |
tree | 1a67f550bd90b5b8e080ba908d2b1fe5b9b16f27 /cui | |
parent | 377b8ee94e5aad0c517101ab1161280fcc39b029 (diff) |
tdf#98212 make paragraph dialog alignment tab preview update
Change-Id: Ibd1d4f2c59bb832d6b2bba597e3f022c628e1887
Reviewed-on: https://gerrit.libreoffice.org/43577
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Katarina Behrens <Katarina.Behrens@cib.de>
Diffstat (limited to 'cui')
-rw-r--r-- | cui/source/tabpages/paragrph.cxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/cui/source/tabpages/paragrph.cxx b/cui/source/tabpages/paragrph.cxx index 99828edc04bd..01fbba4af598 100644 --- a/cui/source/tabpages/paragrph.cxx +++ b/cui/source/tabpages/paragrph.cxx @@ -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; |