summaryrefslogtreecommitdiff
path: root/linguistic
diff options
context:
space:
mode:
authorThomas Lange <tl@openoffice.org>2001-06-15 10:04:26 +0000
committerThomas Lange <tl@openoffice.org>2001-06-15 10:04:26 +0000
commite19eb899ce4a69260589286f9aca2725036d7e66 (patch)
treec26c2b9b0886448b90860bc00b842311ebcb3624 /linguistic
parent1dc29ab7b55f10cb93a4cd1b948187c28e71d404 (diff)
#88321# GetExtCache fixed
Diffstat (limited to 'linguistic')
-rw-r--r--linguistic/source/spelldsp.hxx8
1 files changed, 5 insertions, 3 deletions
diff --git a/linguistic/source/spelldsp.hxx b/linguistic/source/spelldsp.hxx
index dcbf41a8bd5b..1a5eaa98a8e2 100644
--- a/linguistic/source/spelldsp.hxx
+++ b/linguistic/source/spelldsp.hxx
@@ -2,9 +2,9 @@
*
* $RCSfile: spelldsp.hxx,v $
*
- * $Revision: 1.4 $
+ * $Revision: 1.5 $
*
- * last change: $Author: tl $ $Date: 2001-06-05 13:54:51 $
+ * last change: $Author: tl $ $Date: 2001-06-15 11:04:26 $
*
* The Contents of this file are made available subject to the terms of
* either of the following licenses
@@ -254,7 +254,9 @@ public:
inline linguistic::IPRSpellCache & SpellCheckerDispatcher::GetExtCache() const
{
- return pExtCache ? *pExtCache : * new linguistic::IPRSpellCache( 997 );
+ if (!pExtCache)
+ ((SpellCheckerDispatcher *) this)->pExtCache = new linguistic::IPRSpellCache( 997 );
+ return *pExtCache;
}