[Libreoffice-commits] core.git: cui/source

Jim Raykowski raykowj at gmail.com
Fri Oct 20 08:37:30 UTC 2017


 cui/source/tabpages/paragrph.cxx |    5 ++++-
 1 file changed, 4 insertions(+), 1 deletion(-)

New commits:
commit 9466ea1af09c275f423b0d5c1ad929984ed998b3
Author: Jim Raykowski <raykowj at gmail.com>
Date:   Thu Oct 19 10:44:21 2017 -0800

    tdf#98212 make paragraph dialog alignment tab preview update
    
    Change-Id: Ibd1d4f2c59bb832d6b2bba597e3f022c628e1887
    Reviewed-on: https://gerrit.libreoffice.org/43577
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

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;


More information about the Libreoffice-commits mailing list