diff options
author | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:49:36 +0000 |
---|---|---|
committer | Rüdiger Timm <rt@openoffice.org> | 2006-02-06 15:49:36 +0000 |
commit | 71e4fd86c1b321b55f96733b2f2de114e5086c66 (patch) | |
tree | d326dff82b258271aa4f91feddc0b15916fb0b59 /forms/source/xforms/model.cxx | |
parent | 14efc505b3429d4f1f47c76cc425a223e066ca1d (diff) |
INTEGRATION: CWS dba202f (1.4.48); FILE MERGED
2006/01/30 08:33:22 fs 1.4.48.1: #i61047#
Diffstat (limited to 'forms/source/xforms/model.cxx')
-rw-r--r-- | forms/source/xforms/model.cxx | 13 |
1 files changed, 9 insertions, 4 deletions
diff --git a/forms/source/xforms/model.cxx b/forms/source/xforms/model.cxx index 85b6e555993e..4253af6c0f44 100644 --- a/forms/source/xforms/model.cxx +++ b/forms/source/xforms/model.cxx @@ -4,9 +4,9 @@ * * $RCSfile: model.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-09-08 23:18:43 $ + * last change: $Author: rt $ $Date: 2006-02-06 16:49:36 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -305,11 +305,16 @@ void Model::removeMIPs( void* pTag ) OSL_ENSURE( pTag != NULL, "empty tag?" ); for( MIPs_t::iterator aIter = maMIPs.begin(); - aIter != maMIPs.end(); - aIter ++ ) + aIter != maMIPs.end(); ) { if( aIter->second.first == pTag ) + { + MIPs_t::iterator next( aIter ); ++next; maMIPs.erase( aIter ); + aIter = next; + } + else + ++aIter; } } |