| commit | 144ce9fc0e189d6bc117c46ce10fb84ecbd59e18 | [log] |
|---|---|---|
| author | Caolán McNamara <caolanm@redhat.com> | Thu Dec 05 15:31:46 2019 +0000 |
| committer | Caolán McNamara <caolanm@redhat.com> | Fri Dec 06 11:06:37 2019 +0100 |
| tree | 021527c4af1174c4abe168f028c764094a03bcf8 | |
| parent | 6e71b40e84d5921da23f74ab333f5cac7cbf9b9b [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/84600 Tested-by: Jenkins Reviewed-by: Caolán McNamara <caolanm@redhat.com> Tested-by: Caolán McNamara <caolanm@redhat.com>
diff --git a/sw/source/ui/fldui/fldref.cxx b/sw/source/ui/fldui/fldref.cxx index 4b89a8a..95935b1 100644 --- a/sw/source/ui/fldui/fldref.cxx +++ b/sw/source/ui/fldui/fldref.cxx
@@ -257,7 +257,7 @@ void SwFieldRefPage::Reset(const SfxItemSet* ) } } TypeHdl(*m_xTypeLB); if(nFormatBoxPosition != USHRT_MAX) if (nFormatBoxPosition < m_xFormatLB->n_children()) { m_xFormatLB->select(nFormatBoxPosition); }