summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx4
1 files changed, 3 insertions, 1 deletions
diff --git a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
index d6c2201a364f..866679cffc2a 100644
--- a/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
+++ b/framework/source/uiconfiguration/moduleuiconfigurationmanager.cxx
@@ -1513,10 +1513,12 @@ void SAL_CALL ModuleUIConfigurationManager::reload()
try
{
UIElementType& rUserElementType = m_aUIElements[LAYER_USERDEFINED][i];
- UIElementType& rDefaultElementType = m_aUIElements[LAYER_DEFAULT][i];
if ( rUserElementType.bModified )
+ {
+ UIElementType& rDefaultElementType = m_aUIElements[LAYER_DEFAULT][i];
impl_reloadElementTypeData( rUserElementType, rDefaultElementType, aRemoveNotifyContainer, aReplaceNotifyContainer );
+ }
}
catch ( const Exception& )
{