summaryrefslogtreecommitdiff
path: root/sw/source/core/doc/acmplwrd.cxx
diff options
context:
space:
mode:
authorKurt Zenker <kz@openoffice.org>2006-01-05 13:49:47 +0000
committerKurt Zenker <kz@openoffice.org>2006-01-05 13:49:47 +0000
commit110fa69c1650e556f73b6569f2af292eb609a02e (patch)
treec840d993508c8f08954ecce2da41bec2b428122a /sw/source/core/doc/acmplwrd.cxx
parent661057389c786ad98316fc2668009365ad160017 (diff)
INTEGRATION: CWS os72 (1.11.138); FILE MERGED
2005/12/16 07:36:50 os 1.11.138.1: #126505# in ::DocumentDying() the LRU list has to be in sync with word list
Diffstat (limited to 'sw/source/core/doc/acmplwrd.cxx')
-rw-r--r--sw/source/core/doc/acmplwrd.cxx7
1 files changed, 5 insertions, 2 deletions
diff --git a/sw/source/core/doc/acmplwrd.cxx b/sw/source/core/doc/acmplwrd.cxx
index ce6dd662e371..9c14bae19ed1 100644
--- a/sw/source/core/doc/acmplwrd.cxx
+++ b/sw/source/core/doc/acmplwrd.cxx
@@ -4,9 +4,9 @@
*
* $RCSfile: acmplwrd.cxx,v $
*
- * $Revision: 1.11 $
+ * $Revision: 1.12 $
*
- * last change: $Author: rt $ $Date: 2005-09-09 03:08:44 $
+ * last change: $Author: kz $ $Date: 2006-01-05 14:49:47 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
@@ -487,6 +487,9 @@ void SwAutoCompleteWord::DocumentDying(const SwDoc& rDoc)
if(pCurrent->RemoveDocument(rDoc) && bDelete)
{
aWordLst.Remove( nPos - 1 );
+ USHORT nLRUPos = aLRULst.GetPos( (void*)pCurrent );
+ DBG_ASSERT(nLRUPos < USHRT_MAX, "word not found in LRU list" )
+ aLRULst.Remove( nLRUPos );
delete pCurrent;
}
}