summaryrefslogtreecommitdiff
path: root/unotools
diff options
context:
space:
mode:
authorJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 15:12:59 +0000
committerJens-Heiner Rechtien <hr@openoffice.org>2003-04-04 15:12:59 +0000
commit1a487f043c614e8998a544fbdec445ab55a6fb48 (patch)
treee33cc9fc62575017397a8b6f07dbb3a8a7a5726d /unotools
parenta5649055a0ec54ded05a879d018903628bfe2f0b (diff)
INTEGRATION: CWS xmlfilter01 (1.34.22); FILE MERGED
2003/03/06 13:17:19 as 1.34.22.1: #107711# repair ALLO_LOCALE mode
Diffstat (limited to 'unotools')
-rw-r--r--unotools/source/config/configmgr.cxx22
1 files changed, 9 insertions, 13 deletions
diff --git a/unotools/source/config/configmgr.cxx b/unotools/source/config/configmgr.cxx
index f9ea1a229ff7..b5c0986c2404 100644
--- a/unotools/source/config/configmgr.cxx
+++ b/unotools/source/config/configmgr.cxx
@@ -2,9 +2,9 @@
*
* $RCSfile: configmgr.cxx,v $
*
- * $Revision: 1.34 $
+ * $Revision: 1.35 $
*
- * last change: $Author: jb $ $Date: 2002-12-03 12:30:45 $
+ * last change: $Author: hr $ $Date: 2003-04-04 16:12:59 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -295,19 +295,15 @@ Reference< XHierarchicalNameAccess> ConfigManager::AcquireTree(utl::ConfigItem&
// Initialize item with support for reading/writing more then one locales at same time!
// It's neccessary for creation of a complete configuration entry without changing office locale
// at runtime.
- if(rCfgItem.GetMode()&CONFIG_MODE_ALL_LOCALES)
+ if((rCfgItem.GetMode() & CONFIG_MODE_ALL_LOCALES) == CONFIG_MODE_ALL_LOCALES)
{
- aArgs.realloc(4);
- pArgs = aArgs.getArray();
- PropertyValue aProperty;
+ sal_Int32 nCount = aArgs.getLength();
+ aArgs.realloc(nCount+1);
- aProperty.Name = C2U("lazywrite");
- aProperty.Value <<= sal_True ;
- pArgs[2] <<= aProperty;
-
- aProperty.Name = C2U("locale");
- aProperty.Value <<= C2U("*" );
- pArgs[3] <<= aProperty;
+ PropertyValue aAllLocale;
+ aAllLocale.Name = C2U("locale");
+ aAllLocale.Value <<= C2U("*" );
+ aArgs[nCount] <<= aAllLocale;
}
Reference< XMultiServiceFactory > xCfgProvider = GetConfigurationProvider();