diff options
author | Andras Timar <andras.timar@collabora.com> | 2013-11-18 12:12:49 +0100 |
---|---|---|
committer | Andras Timar <andras.timar@collabora.com> | 2013-11-18 13:27:50 +0100 |
commit | d4fa4c7b386157a7b313bacda0aa0b09ff40f5af (patch) | |
tree | b787a92e1f343be89873f71441e6f84f0bb83da3 /framework/source/uiconfiguration | |
parent | 7dca2226394b8e07fe915e811bc02315580dd5b9 (diff) |
fdo#69500: Revert "fix bug #60700 - de-crutify ODF files"
This reverts commit da06166015689eca260c702602bef4cea58afbd3.
Diffstat (limited to 'framework/source/uiconfiguration')
-rw-r--r-- | framework/source/uiconfiguration/uiconfigurationmanager.cxx | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx index 3b264d9434a2..bbfc28288bd8 100644 --- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx +++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx @@ -513,6 +513,8 @@ void UIConfigurationManager::impl_Initialize() // Initialize the top-level structures with the storage data if ( m_xDocConfigStorage.is() ) { + long nModes = m_bReadOnly ? ElementModes::READ : ElementModes::READWRITE; + // Try to access our module sub folder for ( sal_Int16 i = 1; i < ::com::sun::star::ui::UIElementType::COUNT; i++ ) @@ -520,7 +522,7 @@ void UIConfigurationManager::impl_Initialize() Reference< XStorage > xElementTypeStorage; try { - xElementTypeStorage = m_xDocConfigStorage->openStorageElement( OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), ElementModes::READ ); + xElementTypeStorage = m_xDocConfigStorage->openStorageElement( OUString::createFromAscii( UIELEMENTTYPENAMES[i] ), nModes ); } catch ( const com::sun::star::container::NoSuchElementException& ) { |