broadcast change if removing NULL page

Change-Id: Iacf5e9cc509e29aaf5dd1321407c0de9db7677f3
This commit is contained in:
David Tardon
2013-03-18 15:52:42 +01:00
parent a56a162e66
commit 6a08c0cba4

View File

@@ -1486,12 +1486,14 @@ SdrPage* SdrModel::RemovePage(sal_uInt16 nPgNum)
void SdrModel::MovePage(sal_uInt16 nPgNum, sal_uInt16 nNewPos)
{
SdrPage* pPg=maPages[nPgNum];
maPages.erase(maPages.begin()+nPgNum);
PageListChanged();
if (pPg!=NULL) {
maPages.erase(maPages.begin()+nPgNum); // shortcut to avoid two broadcasts
PageListChanged();
pPg->SetInserted(sal_False);
InsertPage(pPg,nNewPos);
}
else
RemovePage(nPgNum);
}
void SdrModel::InsertMasterPage(SdrPage* pPage, sal_uInt16 nPos)