diff options
author | Vladimir Glazounov <vg@openoffice.org> | 2006-04-06 15:19:34 +0000 |
---|---|---|
committer | Vladimir Glazounov <vg@openoffice.org> | 2006-04-06 15:19:34 +0000 |
commit | f29d711537d5422da7efb10344a206eeeb78d13f (patch) | |
tree | cd4983e4bedb875f9596705ac7ec292eff3d5061 /sd | |
parent | ef77b17135eace269f1c8c8589ffbf9af3c66326 (diff) |
INTEGRATION: CWS impress89 (1.4.84); FILE MERGED
2006/03/20 10:31:15 af 1.4.84.1: #132646# Using shared_ptr to slidesorter PageDescriptor.
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx b/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx index 8a8ef72bad6a..9f21f41ed317 100644 --- a/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx +++ b/sd/source/ui/slidesorter/controller/SlsHideSlideFunction.cxx @@ -4,9 +4,9 @@ * * $RCSfile: SlsHideSlideFunction.cxx,v $ * - * $Revision: 1.4 $ + * $Revision: 1.5 $ * - * last change: $Author: rt $ $Date: 2005-12-14 17:20:33 $ + * last change: $Author: vg $ $Date: 2006-04-06 16:19:34 $ * * The Contents of this file are made available subject to * the terms of GNU Lesser General Public License Version 2.1. @@ -76,7 +76,7 @@ void HideSlideFunction::DoExecute(SfxRequest& rRequest) mrController.GetModel().GetSelectedPagesEnumeration()); while (aSelectedPages.HasMoreElements() && eState!=BOTH) { - bState = aSelectedPages.GetNextElement().GetPage()->IsExcluded(); + bState = aSelectedPages.GetNextElement()->GetPage()->IsExcluded(); switch (eState) { case UNDEFINED: @@ -124,10 +124,9 @@ void HideSlideFunction::DoExecute(SfxRequest& rRequest) aSelectedPages.Rewind (); while (aSelectedPages.HasMoreElements()) { - model::PageDescriptor& rDescriptor = aSelectedPages.GetNextElement(); - rDescriptor.GetPage()->SetExcluded (eState==EXCLUDED); - static_cast<view::SlideSorterView*>(pView)->RequestRepaint ( - rDescriptor); + model::SharedPageDescriptor pDescriptor (aSelectedPages.GetNextElement()); + pDescriptor->GetPage()->SetExcluded (eState==EXCLUDED); + static_cast<view::SlideSorterView*>(pView)->RequestRepaint(pDescriptor); } SfxBindings& rBindings = pViewShell->GetViewFrame()->GetBindings(); |