summaryrefslogtreecommitdiff
path: root/sdext
diff options
context:
space:
mode:
authorSven Jacobi <sj@openoffice.org>2007-09-26 12:00:23 +0000
committerSven Jacobi <sj@openoffice.org>2007-09-26 12:00:23 +0000
commite667d6fcdee2cb7406f8986def7977abe00b00ae (patch)
tree6d79667d64b9e11076a519315f481064ad9713c0 /sdext
parent171c0a61b08e0df73e09670aa0b62c71e4729e42 (diff)
#81958# fixed loop when deleting custom slides
Diffstat (limited to 'sdext')
-rw-r--r--sdext/source/minimizer/impoptimizer.cxx6
-rw-r--r--sdext/source/minimizer/pagecollector.cxx7
2 files changed, 5 insertions, 8 deletions
diff --git a/sdext/source/minimizer/impoptimizer.cxx b/sdext/source/minimizer/impoptimizer.cxx
index e9d20fee6250..01b98a23b001 100644
--- a/sdext/source/minimizer/impoptimizer.cxx
+++ b/sdext/source/minimizer/impoptimizer.cxx
@@ -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& )
{
diff --git a/sdext/source/minimizer/pagecollector.cxx b/sdext/source/minimizer/pagecollector.cxx
index 2015f16b47bd..4705aa07ace5 100644
--- a/sdext/source/minimizer/pagecollector.cxx
+++ b/sdext/source/minimizer/pagecollector.cxx
@@ -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--;
- }
}
}
}