diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 09:13:14 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-11-01 09:13:14 +0000 |
commit | 8ac3d1128f4427398fe0f2b1efc86b276f00bad0 (patch) | |
tree | 51a8094269b3a35b2895fd01c2ac4c3e3d9b8b73 /ucb | |
parent | 9da96fa3b061fd51775f555ede6c7708ed58eb60 (diff) |
INTEGRATION: CWS abi30 (1.13.24); FILE MERGED
2006/10/17 15:16:20 abi 1.13.24.2: RESYNC: (1.13-1.14); FILE MERGED
2006/09/17 15:51:12 abi 1.13.24.1: #i62809#
Diffstat (limited to 'ucb')
-rw-r--r-- | ucb/source/ucp/tdoc/tdoc_docmgr.cxx | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx index 263238bf7277..3d235796f62b 100644 --- a/ucb/source/ucp/tdoc/tdoc_docmgr.cxx +++ b/ucb/source/ucp/tdoc/tdoc_docmgr.cxx @@ -4,9 +4,9 @@ * * $RCSfile: tdoc_docmgr.cxx,v $ * - * $Revision: 1.14 $ + * $Revision: 1.15 $ * - * last change: $Author: obo $ $Date: 2006-09-17 14:01:42 $ + * last change: $Author: vg $ $Date: 2006-11-01 10:13:14 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -307,7 +307,7 @@ void SAL_CALL OfficeDocumentsManager::notifyEvent( m_pDocEventListener->notifyDocumentClosed( aDocId ); } - m_aDocs.erase( it ); + break; } ++it; @@ -315,6 +315,9 @@ void SAL_CALL OfficeDocumentsManager::notifyEvent( OSL_ENSURE( it != m_aDocs.end(), "OnUnload event notified for unknown document!" ); + + if( it != m_aDocs.end() ) + m_aDocs.erase( it ); } } else if ( Event.EventName.equalsAsciiL( |