diff options
author | Noel Power <noel.power@suse.com> | 2013-06-24 21:40:32 +0100 |
---|---|---|
committer | Noel Power <noel.power@suse.com> | 2013-06-24 21:40:32 +0100 |
commit | ee51444ed1f7003dafc93c8181b5f8c1b0fd165b (patch) | |
tree | fbe9f1aa3b27f33f112ddaecc67629de75ac63b5 /sd/source/ui/view/drviews1.cxx | |
parent | 1680a8cd4f4393ec15c4f85cb63b6654117d56d1 (diff) |
fix borders unit test ( test values have changed )
Change-Id: I1205eddf83781bef655abe4a1293c691bc5f1c41
Diffstat (limited to 'sd/source/ui/view/drviews1.cxx')
-rw-r--r-- | sd/source/ui/view/drviews1.cxx | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/sd/source/ui/view/drviews1.cxx b/sd/source/ui/view/drviews1.cxx index fe0f1dd598d8..8ad0ce36ce80 100644 --- a/sd/source/ui/view/drviews1.cxx +++ b/sd/source/ui/view/drviews1.cxx @@ -1059,11 +1059,12 @@ sal_Bool DrawViewShell::SwitchPage(sal_uInt16 nSelectedPage) { // set pages for all available handout presentation objects sd::ShapeList& rShapeList = pMaster->GetPresentationShapeList(); - SdrObject* pObj = 0; - rShapeList.seekShape(0); - while( (pObj = rShapeList.getNextShape()) ) + for( ShapeList::const_iterator aIter( rShapeList.cbegin() ); + aIter != rShapeList.cend(); ++aIter ) { + SdrObject* pObj = *aIter; + if( pMaster->GetPresObjKind(pObj) == PRESOBJ_HANDOUT ) { // #i105146# We want no content to be displayed for PK_HANDOUT, |