summaryrefslogtreecommitdiff
path: root/sd/source/ui/view/OutlinerIterator.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'sd/source/ui/view/OutlinerIterator.cxx')
-rw-r--r--sd/source/ui/view/OutlinerIterator.cxx4
1 files changed, 2 insertions, 2 deletions
diff --git a/sd/source/ui/view/OutlinerIterator.cxx b/sd/source/ui/view/OutlinerIterator.cxx
index 1e24dd373d49..be50a50ac3c4 100644
--- a/sd/source/ui/view/OutlinerIterator.cxx
+++ b/sd/source/ui/view/OutlinerIterator.cxx
@@ -199,14 +199,14 @@ Iterator OutlinerContainer::CreateIterator (IteratorLocation aLocation)
return CreateSelectionIterator (
mpOutliner->maMarkListCopy,
mpOutliner->mpDrawDocument,
- mpOutliner->mpViewShell,
+ mpOutliner->mpWeakViewShell.lock(),
mpOutliner->mbDirectionIsForward,
aLocation);
else
// Search in the whole document.
return CreateDocumentIterator (
mpOutliner->mpDrawDocument,
- mpOutliner->mpViewShell,
+ mpOutliner->mpWeakViewShell.lock(),
mpOutliner->mbDirectionIsForward,
aLocation);
}