diff options
author | Caolán McNamara <caolanm@redhat.com> | 2019-04-27 19:30:34 +0100 |
---|---|---|
committer | Michael Stahl <Michael.Stahl@cib.de> | 2019-04-29 18:53:34 +0200 |
commit | 5bb99883d383561d7c74f2f2a3cb41060137ebaf (patch) | |
tree | e56a75cc23146cd2884a7799d7e5a51c9170fb14 | |
parent | gtk_tree_model_iter_parent modifies the 1st arg, not 2nd (diff) | |
download | core-5bb99883d383561d7c74f2f2a3cb41060137ebaf.tar.gz core-5bb99883d383561d7c74f2f2a3cb41060137ebaf.zip |
Resolves: tdf#124984 organize basic macro new added module doesn't show up
Change-Id: I422131ab203eba62ed5cf6fb2e19e23325b43f6e
Reviewed-on: https://gerrit.libreoffice.org/71434
Tested-by: Jenkins
Reviewed-by: Michael Stahl <Michael.Stahl@cib.de>
-rw-r--r-- | basctl/source/basicide/moduldlg.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/basctl/source/basicide/moduldlg.cxx b/basctl/source/basicide/moduldlg.cxx index 1f525beb7c26..6626420f14cf 100644 --- a/basctl/source/basicide/moduldlg.cxx +++ b/basctl/source/basicide/moduldlg.cxx @@ -1128,8 +1128,10 @@ SbModule* createModImpl(weld::Window* pWin, const ScriptDocument& rDocument, bool bEntry = rBasicBox.FindEntry(aModName, OBJ_TYPE_MODULE, *xEntry); if (!bEntry) { - rBasicBox.AddEntry(aModName, RID_BMP_MODULE, xEntry.get(), false, + rBasicBox.AddEntry(aModName, RID_BMP_MODULE, xSubRootEntry.get(), false, o3tl::make_unique<Entry>(OBJ_TYPE_MODULE)); + rBasicBox.copy_iterator(*xSubRootEntry, *xEntry); + rBasicBox.FindEntry(aModName, OBJ_TYPE_MODULE, *xEntry); } rBasicBox.set_cursor(*xEntry); rBasicBox.select(*xEntry); |