Lines 225-234
Link Here
|
225 |
// size, master page, to the new page. This is usually the given page. |
225 |
// size, master page, to the new page. This is usually the given page. |
226 |
// When the given page is NULL then use the first page of the document. |
226 |
// When the given page is NULL then use the first page of the document. |
227 |
SdPage* pTemplatePage = pPage; |
227 |
SdPage* pTemplatePage = pPage; |
228 |
if (pTemplatePage == NULL) |
228 |
if (pTemplatePage == nullptr) |
229 |
if (pDocument->GetSdPage(0, ePageKind) > 0) |
229 |
if (pDocument->GetSdPage(0, ePageKind) != nullptr) |
230 |
pTemplatePage = pDocument->GetSdPage(0, ePageKind); |
230 |
pTemplatePage = pDocument->GetSdPage(0, ePageKind); |
231 |
if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage()) |
231 |
if (pTemplatePage != nullptr && pTemplatePage->TRG_HasMasterPage()) |
232 |
aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers(); |
232 |
aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers(); |
233 |
else |
233 |
else |
234 |
aVisibleLayers.SetAll(); |
234 |
aVisibleLayers.SetAll(); |