[Libreoffice-commits] core.git: Branch 'libreoffice-6-2' - basctl/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Mon Apr 29 16:54:19 UTC 2019
basctl/source/basicide/moduldlg.cxx | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
New commits:
commit 5bb99883d383561d7c74f2f2a3cb41060137ebaf
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Sat Apr 27 19:30:34 2019 +0100
Commit: Michael Stahl <Michael.Stahl at cib.de>
CommitDate: Mon Apr 29 18:53:34 2019 +0200
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 at cib.de>
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);
More information about the Libreoffice-commits
mailing list