Kaydet (Commit) 243630f3 authored tarafından David Tardon's avatar David Tardon

fdo#58362 do not crash on customize toolbar

Change-Id: I7102a1635329b3bcdd3bf6bc250555cc71e0977e
üst 7cc485c8
......@@ -3706,9 +3706,10 @@ ToolbarSaveInData::ToolbarSaveInData(
m_aDescriptorContainer ( ITEM_DESCRIPTOR_CONTAINER )
{
uno::Reference<uno::XComponentContext> xContext = ::comphelper::getProcessComponentContext();
// Initialize the m_xPersistentWindowState variable which is used
// to get the default properties of system toolbars such as name
uno::Reference< container::XNameAccess > xPWSS = css::ui::WindowStateConfiguration::create( m_xContext );
uno::Reference< container::XNameAccess > xPWSS = css::ui::WindowStateConfiguration::create( xContext );
xPWSS->getByName( aModuleId ) >>= m_xPersistentWindowState;
}
......
......@@ -131,9 +131,6 @@ public:
< ::com::sun::star::ui::XImageManager >
GetParentImageManager() { return m_xParentImgMgr; };
::com::sun::star::uno::Reference
< com::sun::star::uno::XComponentContext > m_xContext;
::com::sun::star::uno::Reference
< com::sun::star::container::XNameAccess > m_xCommandToLabelMap;
......
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