summaryrefslogtreecommitdiff
path: root/basctl
diff options
context:
space:
mode:
authorJulien Nabet <serval2412@yahoo.fr>2012-04-16 21:14:57 +0200
committerJulien Nabet <serval2412@yahoo.fr>2012-04-16 21:16:47 +0200
commit8bfee2c0eb6fcec49d05562bf1cb945356a4180e (patch)
tree7f00f451768c61f53f53abb8f35f61e75dc5065f /basctl
parenta2c86edd6a15150d4b6ab8f5d22126f129db86fe (diff)
Resolves: fdo#48368 CRASH closing IDE
Diffstat (limited to 'basctl')
-rw-r--r--basctl/source/basicide/basidesh.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/basctl/source/basicide/basidesh.cxx b/basctl/source/basicide/basidesh.cxx
index e4dcd989b86d..02e10c2fb120 100644
--- a/basctl/source/basicide/basidesh.cxx
+++ b/basctl/source/basicide/basidesh.cxx
@@ -417,9 +417,9 @@ sal_uInt16 BasicIDEShell::PrepareClose( sal_Bool bUI, sal_Bool bForBrowsing )
else
{
sal_Bool bCanClose = sal_True;
- for ( sal_uLong nWin = 0; bCanClose && ( nWin < aIDEWindowTable.size() ); nWin++ )
+ for (IDEWindowTable::const_iterator it = aIDEWindowTable.begin(); bCanClose && (it != aIDEWindowTable.end()); ++it)
{
- IDEBaseWindow* pWin = aIDEWindowTable[ nWin ];
+ IDEBaseWindow* pWin = it->second;
if ( !pWin->CanClose() )
{
if ( !m_aCurLibName.isEmpty() && ( pWin->IsDocument( m_aCurDocument ) || pWin->GetLibName() != m_aCurLibName ) )