summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2019-04-27 19:30:34 +0100
committerMichael Stahl <Michael.Stahl@cib.de>2019-04-29 18:53:34 +0200
commit5bb99883d383561d7c74f2f2a3cb41060137ebaf (patch)
treee56a75cc23146cd2884a7799d7e5a51c9170fb14 /basctl
parent14c5af0ef085eb1fa03bfdcc47f4bc9505b31bad (diff)
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>
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/moduldlg.cxx4
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);