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

navin patidar patidar at kacst.edu.sa
Wed Mar 20 00:10:48 PDT 2013


 sw/source/ui/docvw/SidebarWin.cxx |    5 +----
 1 file changed, 1 insertion(+), 4 deletions(-)

New commits:
commit 79dd315e9b19ec3bc6601c359a0ecb6d576d4aa8
Author: navin patidar <patidar at kacst.edu.sa>
Date:   Tue Mar 19 08:58:22 2013 +0300

    fix fdo#62050 : Initially disable RTL for comment window.
    
    In RTL UI, comment window is RTL and editbox’s (editeng) default writing
    direction is LTR.
    and i suspect, the bug is result of this RTL & LTR mix-up.
    
    Change-Id: If3af4ae428b67151d66661907b9e60a97049e0e6
    Reviewed-on: https://gerrit.libreoffice.org/2831
    Reviewed-by: abdulmajeed ahmed <aalabdulrazzaq at kacst.edu.sa>
    Reviewed-by: Ahmad Harthi <aalharthi at kacst.edu.sa>
    Tested-by: Ahmad Harthi <aalharthi at kacst.edu.sa>

diff --git a/sw/source/ui/docvw/SidebarWin.cxx b/sw/source/ui/docvw/SidebarWin.cxx
index 9518008..a848fb6 100644
--- a/sw/source/ui/docvw/SidebarWin.cxx
+++ b/sw/source/ui/docvw/SidebarWin.cxx
@@ -319,6 +319,7 @@ void SwSidebarWin::InitControls()
     mpOutliner->SetUpdateMode( sal_True );
     Rescale();
 
+    mpSidebarTxtControl->EnableRTL( sal_False );
     mpOutlinerView = new OutlinerView ( mpOutliner, mpSidebarTxtControl );
     mpOutlinerView->SetBackgroundColor(COL_TRANSPARENT);
     mpOutliner->InsertView(mpOutlinerView );
@@ -326,10 +327,6 @@ void SwSidebarWin::InitControls()
 
     mpOutlinerView->SetAttribs(DefaultItem());
 
-    // TODO: ??
-    EEHorizontalTextDirection aDefHoriTextDir = Application::GetSettings().GetLayoutRTL() ? EE_HTEXTDIR_R2L : EE_HTEXTDIR_L2R;
-    mpOutliner->SetDefaultHorizontalTextDirection( aDefHoriTextDir );
-
     //create Scrollbars
     mpVScrollbar = new ScrollBar(this, WB_3DLOOK |WB_VSCROLL|WB_DRAG);
     mpVScrollbar->EnableNativeWidget(false);


More information about the Libreoffice-commits mailing list