Kaydet (Commit) 039a52df authored tarafından Noel Grandin's avatar Noel Grandin

tdf#114802 Emojis palette inserts code instead of emoji

regression from

    commit 027b25ec
    use comphelper::InitPropertySequence in more places

Change-Id: I587242427c00ebf1faf44ad6b12090a39a1a3ef7
Reviewed-on: https://gerrit.libreoffice.org/47704Reviewed-by: 's avatarJean-Baptiste Faure <jbfaure@libreoffice.org>
Tested-by: 's avatarJenkins <ci@libreoffice.org>
Reviewed-by: 's avatarNoel Grandin <noel.grandin@collabora.co.uk>
üst eefd133d
......@@ -160,13 +160,14 @@ IMPL_LINK_NOARG(SfxEmojiControl, ActivatePageHdl, TabControl*, void)
IMPL_STATIC_LINK(SfxEmojiControl, InsertHdl, ThumbnailViewItem*, pItem, void)
{
OUString sHexText = OUString::number(pItem->getTitle().toUInt32(16));
OUString sHexText = pItem->getTitle();
sal_uInt32 cEmojiChar = sHexText.toUInt32(16);
uno::Reference< uno::XComponentContext > xContext( comphelper::getProcessComponentContext() );
OUString sFontName(officecfg::Office::Common::Misc::EmojiFont::get(xContext));
uno::Sequence<beans::PropertyValue> aArgs( comphelper::InitPropertySequence({
{ "Symbols", uno::Any(sHexText) },
{ "Symbols", uno::Any(OUString(&cEmojiChar, 1)) },
// add font settings here
{ "FontName", uno::Any(sFontName) }
}));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment