sw/source/ui/frmdlg/frmpage.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit bc91ece78e3ea2df4082c796469e42cc5fc72107 Author: Caolán McNamara <[email protected]> AuthorDate: Mon Aug 15 12:43:09 2022 +0100 Commit: Caolán McNamara <[email protected]> CommitDate: Tue Aug 16 13:38:51 2022 +0200 don't try and select position 0 of combobox if combobox is empty Change-Id: Ie3e128228c3a2d7d17126e743e756d7d3320255c Reviewed-on: https://gerrit.libreoffice.org/c/core/+/138309 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sw/source/ui/frmdlg/frmpage.cxx b/sw/source/ui/frmdlg/frmpage.cxx index 83cf98f49195..11955b5beb42 100644 --- a/sw/source/ui/frmdlg/frmpage.cxx +++ b/sw/source/ui/frmdlg/frmpage.cxx @@ -1397,7 +1397,7 @@ sal_Int32 SwFramePage::FillPosLB(const FrameMap* _pMap, if (_rLB.get_active() == -1) _rLB.set_active_text(sOldEntry); - if (_rLB.get_active() == -1) + if (_rLB.get_active() == -1 && _rLB.get_count()) _rLB.set_active(0); PosHdl(_rLB);
