summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2017-11-30 16:19:26 +0000
committerThorsten Behrens <Thorsten.Behrens@CIB.de>2017-12-01 02:12:08 +0100
commit26cd0bb46559c01e1a871098efb385f57ea6de43 (patch)
treed7c1e93ce169823fb3242c765b1570404f229a39
parentd100a7c38bbf300b6aa7689b8252d187e24d7117 (diff)
Resolves: tdf#114112 sort 'select' list
Change-Id: I0b80b2f7e8377f92a397b6557d2c3fad3e63f16a Reviewed-on: https://gerrit.libreoffice.org/45608 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Thorsten Behrens <Thorsten.Behrens@CIB.de>
-rw-r--r--sw/source/ui/fldui/fldvar.cxx1
1 files changed, 1 insertions, 0 deletions
diff --git a/sw/source/ui/fldui/fldvar.cxx b/sw/source/ui/fldui/fldvar.cxx
index b9dbc7541054..0639f193de7d 100644
--- a/sw/source/ui/fldui/fldvar.cxx
+++ b/sw/source/ui/fldui/fldvar.cxx
@@ -48,6 +48,7 @@ SwFieldVarPage::SwFieldVarPage(vcl::Window* pParent, const SfxItemSet *const pCo
get(m_pTypeLB, "type");
get(m_pSelection, "selectframe");
get(m_pSelectionLB, "select");
+ m_pSelectionLB->SetStyle(m_pSelectionLB->GetStyle() | WB_SORT);
get(m_pFormat, "formatframe");
get(m_pChapterFrame, "chapterframe");
get(m_pNameFT, "nameft");