basctl/source/basicide/moduldl2.cxx | 2 ++ 1 file changed, 2 insertions(+)
New commits: commit e589ea5eb50dcc1a6894084df3cdaa02060835b9 Author: Jim Raykowski <rayk...@gmail.com> AuthorDate: Wed Aug 28 19:17:27 2024 -0800 Commit: Jim Raykowski <rayk...@gmail.com> CommitDate: Mon Sep 2 19:45:52 2024 +0200 Fix Basic Macro Organizer library list after import of library with Insert as reference (read-only) option checked The last entry in the list always shows the link location of the just imported library. This will only be correct if the imported library is alphabetically the last entry in the list. Change-Id: I03472dc75582e92b87923faf96d14615b8adecf9 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/172561 Tested-by: Jenkins Reviewed-by: Jim Raykowski <rayk...@gmail.com> diff --git a/basctl/source/basicide/moduldl2.cxx b/basctl/source/basicide/moduldl2.cxx index c59eff1706a9..d8b24af7f9e3 100644 --- a/basctl/source/basicide/moduldl2.cxx +++ b/basctl/source/basicide/moduldl2.cxx @@ -902,7 +902,9 @@ void LibPage::InsertLib() } // insert listbox entry + m_xLibBox->make_unsorted(); ImpInsertLibEntry( aLibName, m_xLibBox->n_children() ); + m_xLibBox->make_sorted(); m_xLibBox->set_cursor( m_xLibBox->find_text(aLibName) ); bChanges = true; }