diff options
Diffstat (limited to 'sd/source/ui/slidesorter/model/SlideSorterModel.cxx')
-rw-r--r-- | sd/source/ui/slidesorter/model/SlideSorterModel.cxx | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx index cd8c2df16de4..682904fbb8d9 100644 --- a/sd/source/ui/slidesorter/model/SlideSorterModel.cxx +++ b/sd/source/ui/slidesorter/model/SlideSorterModel.cxx @@ -103,7 +103,6 @@ SlideSorterModel::SlideSorterModel (SlideSorter& rSlideSorter) : maMutex(), mrSlideSorter(rSlideSorter), mxSlides(), - mePageKind(PK_STANDARD), meEditMode(EM_PAGE), maPageDescriptors(0) { @@ -279,7 +278,7 @@ void SlideSorterModel::Resync() // Check if document and this model really differ. bool bIsUpToDate (true); SdDrawDocument* pDocument = GetDocument(); - if (pDocument!=nullptr && maPageDescriptors.size()==pDocument->GetSdPageCount(mePageKind)) + if (pDocument!=nullptr && maPageDescriptors.size()==pDocument->GetSdPageCount(PK_STANDARD)) { for (sal_Int32 nIndex=0,nCount=maPageDescriptors.size(); nIndex<nCount; ++nIndex) { @@ -528,7 +527,7 @@ bool SlideSorterModel::NotifyPageEvent (const SdrPage* pSdrPage) // We are only interested in pages that are currently served by this // model. - if (pPage->GetPageKind() != mePageKind) + if (pPage->GetPageKind() != PK_STANDARD) return false; if (pPage->IsMasterPage() != (meEditMode==EM_MASTERPAGE)) return false; @@ -637,9 +636,9 @@ SdPage* SlideSorterModel::GetPage (const sal_Int32 nSdIndex) const if (pModel != nullptr) { if (meEditMode == EM_PAGE) - return pModel->GetSdPage ((sal_uInt16)nSdIndex, mePageKind); + return pModel->GetSdPage ((sal_uInt16)nSdIndex, PK_STANDARD); else - return pModel->GetMasterSdPage ((sal_uInt16)nSdIndex, mePageKind); + return pModel->GetMasterSdPage ((sal_uInt16)nSdIndex, PK_STANDARD); } else return nullptr; |