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

Muhammet Kara muhammet.kara at pardus.org.tr
Thu Jun 16 20:53:15 UTC 2016


 sw/source/ui/misc/srtdlg.cxx |   10 ++++++----
 1 file changed, 6 insertions(+), 4 deletions(-)

New commits:
commit 29e91d5eedd2bf20504ce9ada625d33fec19dc9e
Author: Muhammet Kara <muhammet.kara at pardus.org.tr>
Date:   Thu Jun 16 11:23:32 2016 +0300

    Ensure updated accessible names in SwSortDlg ctor
    
    Set accessible names after the conditional block because text of m_pColLbl may be changed
    
    Change-Id: I2902fd346384be2c9ffa471c71ad94cacede7d14
    Reviewed-on: https://gerrit.libreoffice.org/26352
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Katarina Behrens <Katarina.Behrens at cib.de>

diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index 9a96a3b..3649dd9 100644
--- a/sw/source/ui/misc/srtdlg.cxx
+++ b/sw/source/ui/misc/srtdlg.cxx
@@ -148,10 +148,6 @@ SwSortDlg::SwSortDlg(vcl::Window* pParent, SwWrtShell &rShell)
     get(m_pLangLB, "langlb");
     get(m_pCaseCB, "matchcase");
 
-    m_pColEdt1->SetAccessibleName(m_pColLbl->GetText());
-    m_pColEdt2->SetAccessibleName(m_pColLbl->GetText());
-    m_pColEdt3->SetAccessibleName(m_pColLbl->GetText());
-
     m_pDelimEdt->SetMaxTextLen( 1 );
     if(rSh.GetSelectionType() &
             (nsSelectionType::SEL_TBL|nsSelectionType::SEL_TBL_CELLS) )
@@ -170,6 +166,12 @@ SwSortDlg::SwSortDlg(vcl::Window* pParent, SwWrtShell &rShell)
         m_pColLbl->SetText(aColText);
     }
 
+    // Set accessible names here because text of m_pColLbl may be changed
+    // by the if-else block above
+    m_pColEdt1->SetAccessibleName(m_pColLbl->GetText());
+    m_pColEdt2->SetAccessibleName(m_pColLbl->GetText());
+    m_pColEdt3->SetAccessibleName(m_pColLbl->GetText());
+
     // initialise
     Link<Button*,void> aLk = LINK(this,SwSortDlg, CheckHdl);
     m_pKeyCB1->SetClickHdl( aLk );


More information about the Libreoffice-commits mailing list