diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-12-05 15:31:46 +0000 |
---|---|---|
committer | Michael Stahl <michael.stahl@cib.de> | 2019-12-06 14:51:46 +0100 |
commit | 94c634aac1e9ebd515cdcecb5c9920181b9e22fd (patch) | |
tree | 001f3c0567fb0984825bf668c7611140bb11cf75 /sw | |
parent | 61e8387fa8ab55a04b95839c7c385c163d6de1cd (diff) |
tdf#127955 check if position stored in user config is in range for the treeview
https://crashreport.libreoffice.org/stats/crash_details/8c4a3136-73be-4536-ad6f-ce97ae0368dd
Change-Id: I320f965eb622f90f8059f85e7ba2ff203419ab3f
Reviewed-on: https://gerrit.libreoffice.org/84601
Tested-by: Jenkins
Reviewed-by: Michael Stahl <michael.stahl@cib.de>
Diffstat (limited to 'sw')
-rw-r--r-- | sw/source/ui/fldui/fldref.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 3a62dd544243..6bddaaadd95f 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx @@ -258,7 +258,7 @@ void SwFieldRefPage::Reset(const SfxItemSet* ) } } TypeHdl(*m_xTypeLB); - if(nFormatBoxPosition != USHRT_MAX) + if (nFormatBoxPosition < m_xFormatLB->n_children()) { m_xFormatLB->select(nFormatBoxPosition); } |