[Libreoffice-commits] core.git: sfx2/source
Caolán McNamara (via logerrit)
logerrit at kemper.freedesktop.org
Sat Feb 29 15:55:46 UTC 2020
sfx2/source/toolbox/weldutils.cxx | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
New commits:
commit b9644a230cbaa1cf0478506c9a766c2a93276133
Author: Caolán McNamara <caolanm at redhat.com>
AuthorDate: Fri Feb 28 15:45:04 2020 +0000
Commit: Caolán McNamara <caolanm at redhat.com>
CommitDate: Sat Feb 29 16:55:14 2020 +0100
skip non-uno dispatch toolbar entries
Change-Id: Ifaf3bf5d361cb154831391e26502fc30fffa52e1
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/89724
Tested-by: Jenkins
Reviewed-by: Caolán McNamara <caolanm at redhat.com>
diff --git a/sfx2/source/toolbox/weldutils.cxx b/sfx2/source/toolbox/weldutils.cxx
index 3b16543242aa..1be8559d4d87 100644
--- a/sfx2/source/toolbox/weldutils.cxx
+++ b/sfx2/source/toolbox/weldutils.cxx
@@ -87,7 +87,10 @@ ToolbarUnoDispatcher::ToolbarUnoDispatcher(weld::Toolbar& rToolbar,
for (int i = 0, nItems = rToolbar.get_n_items(); i < nItems; ++i)
{
- OUString sCommand = OUString::fromUtf8(rToolbar.get_item_ident(i));
+ OString sIdent(rToolbar.get_item_ident(i));
+ if (!sIdent.startsWith(".uno:"))
+ continue;
+ OUString sCommand = OUString::fromUtf8(sIdent);
if (bRTL && lcl_RTLizeCommandURL(sCommand))
rToolbar.set_item_ident(i, sCommand.toUtf8());
More information about the Libreoffice-commits
mailing list