summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
Diffstat (limited to 'sw')
-rw-r--r--sw/source/ui/misc/srtdlg.cxx10
1 files changed, 6 insertions, 4 deletions
diff --git a/sw/source/ui/misc/srtdlg.cxx b/sw/source/ui/misc/srtdlg.cxx
index 9a96a3bca014..3649dd90ec9e 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 );