vbahelper/source/vbahelper/vbacommandbarhelper.cxx | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-)
New commits: commit 5accbeaa6fe8aabb26bbcf953c52ec9fb960ea56 Author: Tor Lillqvist <t...@collabora.com> AuthorDate: Thu Mar 7 15:49:21 2019 +0200 Commit: Tor Lillqvist <t...@collabora.com> CommitDate: Thu Mar 7 15:49:21 2019 +0200 tdf#123819: Revert "Use comphelper::getProcessComponentContext()" Even though in theory it was worse to get an exception and return an empty Any for CommandBars, in practice there are not resources to figure out why that change apparently then caused a crash in the customer application. Let's hope that it doesn't actually need the CommandBars object for anything essential. This reverts commit 87b4bd61792b28fe475c71d4484cd219c1e533ae. diff --git a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx index 915805b81f88..777e7a3695b7 100644 --- a/vbahelper/source/vbahelper/vbacommandbarhelper.cxx +++ b/vbahelper/source/vbahelper/vbacommandbarhelper.cxx @@ -111,13 +111,12 @@ void VbaCommandBarHelper::Init( ) throw uno::RuntimeException( "Not implemented" ); } - css::uno::Reference< css::uno::XComponentContext > xContext(comphelper::getProcessComponentContext()); css::uno::Reference< css::ui::XModuleUIConfigurationManagerSupplier > xUICfgMgrSupp( - css::ui::theModuleUIConfigurationManagerSupplier::get( xContext ) ); + css::ui::theModuleUIConfigurationManagerSupplier::get(mxContext) ); m_xAppCfgMgr.set( xUICfgMgrSupp->getUIConfigurationManager( maModuleId ), uno::UNO_QUERY_THROW ); - css::uno::Reference< css::container::XNameAccess > xNameAccess = css::ui::theWindowStateConfiguration::get( xContext ); + css::uno::Reference< css::container::XNameAccess > xNameAccess = css::ui::theWindowStateConfiguration::get( mxContext ); m_xWindowState.set( xNameAccess->getByName( maModuleId ), uno::UNO_QUERY_THROW ); } _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits