summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRüdiger Timm <rt@openoffice.org>2005-11-11 07:51:23 +0000
committerRüdiger Timm <rt@openoffice.org>2005-11-11 07:51:23 +0000
commit29de2c2ac3b67877689e1c5ed5008af4c06f10c7 (patch)
tree49cdb40105de0440eadeb84bf1bb7b583bc5edc2
parent376c00e0fe3ed1053b733efb6fa6fe841f0f6081 (diff)
INTEGRATION: CWS perform06 (1.3.60); FILE MERGED
2005/10/25 08:04:04 as 1.3.60.1: #i56589# hold config items alive till office die
-rw-r--r--svtools/source/config/lingucfg.cxx9
1 files changed, 7 insertions, 2 deletions
diff --git a/svtools/source/config/lingucfg.cxx b/svtools/source/config/lingucfg.cxx
index 98e47ba8b427..23aa443f1941 100644
--- a/svtools/source/config/lingucfg.cxx
+++ b/svtools/source/config/lingucfg.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: lingucfg.cxx,v $
*
- * $Revision: 1.3 $
+ * $Revision: 1.4 $
*
- * last change: $Author: rt $ $Date: 2005-09-08 14:42:19 $
+ * last change: $Author: rt $ $Date: 2005-11-11 08:51:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -55,6 +55,8 @@
#include <linguprops.hxx>
#endif
+#include <itemholder1.hxx>
+
using namespace rtl;
using namespace com::sun::star::uno;
using namespace com::sun::star::beans;
@@ -910,7 +912,10 @@ SvtLinguConfigItem & SvtLinguConfig::GetConfigItem()
// Global access, must be guarded (multithreading)
osl::MutexGuard aGuard( GetOwnMutex() );
if (!pCfgItem)
+ {
pCfgItem = new SvtLinguConfigItem;
+ ItemHolder1::holdConfigItem(E_LINGUCFG);
+ }
++nCfgItemRefCount;
return *pCfgItem;
}