summaryrefslogtreecommitdiff
path: root/framework
diff options
context:
space:
mode:
authorAndras Timar <andras.timar@collabora.com>2013-11-18 12:12:49 +0100
committerAndras Timar <andras.timar@collabora.com>2013-11-21 11:54:23 +0100
commit8ed8d251893f2d74416b7cf102ec9d51cad58a58 (patch)
tree81521fd122838c4a444612a257a0b1d3fb7d53a6 /framework
parent94b4f03739636c4036c260b9b635169fdea1d4a3 (diff)
fdo#69500: Revert "fix bug #60700 - de-crutify ODF files"
This reverts commit da06166015689eca260c702602bef4cea58afbd3. Change-Id: I8f88b68a9ab7bd8c95aad90984ddca20e3ca9d13 Reviewed-on: https://gerrit.libreoffice.org/6709 Reviewed-by: Michael Meeks <michael.meeks@collabora.com> Tested-by: Michael Meeks <michael.meeks@collabora.com>
Diffstat (limited to 'framework')
-rw-r--r--framework/source/uiconfiguration/uiconfigurationmanager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uiconfiguration/uiconfigurationmanager.cxx b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
index c32e2d90c452..a2469e087cea 100644
--- a/framework/source/uiconfiguration/uiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/uiconfigurationmanager.cxx
@@ -540,6 +540,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++ )
@@ -547,7 +549,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& )
{