Kaydet (Commit) e667d6fc authored tarafından Sven Jacobi's avatar Sven Jacobi

#81958# fixed loop when deleting custom slides

üst 171c0a61
......@@ -4,9 +4,9 @@
*
* $RCSfile: impoptimizer.cxx,v $
*
* $Revision: 1.6 $
* $Revision: 1.7 $
*
* last change: $Author: sj $ $Date: 2007-08-17 10:33:17 $
* last change: $Author: sj $ $Date: 2007-09-26 13:00:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -184,7 +184,7 @@ void ImpExtractCustomShow( const Reference< XModel >& rxModel, const OUString& r
Reference< XDrawPages > xDrawPages( xDrawPagesSupplier->getDrawPages(), UNO_QUERY_THROW );
vector< Reference< XDrawPage > >::iterator aIter( vNonUsedPageList.begin() );
while( aIter != vNonUsedPageList.end() )
xDrawPages->remove( *aIter );
xDrawPages->remove( *aIter++ );
}
catch( Exception& )
{
......
......@@ -4,9 +4,9 @@
*
* $RCSfile: pagecollector.cxx,v $
*
* $Revision: 1.1 $
* $Revision: 1.2 $
*
* last change: $Author: sj $ $Date: 2007-05-11 13:59:09 $
* last change: $Author: sj $ $Date: 2007-09-26 13:00:23 $
*
* The Contents of this file are made available subject to
* the terms of GNU Lesser General Public License Version 2.1.
......@@ -133,10 +133,7 @@ void PageCollector::CollectNonCustomShowPages( const com::sun::star::uno::Refere
aIter++;
}
if ( aIter == aEnd )
{
rNonUsedPageList.push_back( xDrawPage );
j--;
}
}
}
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment