Kaydet (Commit) 3f02f62e authored tarafından David Tardon's avatar David Tardon

WaE: ordered comparison of pointer with integer zero

üst 5f166e1d
...@@ -220,8 +220,7 @@ SdPage* ViewShell::CreateOrDuplicatePage ( ...@@ -220,8 +220,7 @@ SdPage* ViewShell::CreateOrDuplicatePage (
// When the given page is NULL then use the first page of the document. // When the given page is NULL then use the first page of the document.
SdPage* pTemplatePage = pPage; SdPage* pTemplatePage = pPage;
if (pTemplatePage == NULL) if (pTemplatePage == NULL)
if (pDocument->GetSdPage(0, ePageKind) > 0) pTemplatePage = pDocument->GetSdPage(0, ePageKind);
pTemplatePage = pDocument->GetSdPage(0, ePageKind);
if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage()) if (pTemplatePage != NULL && pTemplatePage->TRG_HasMasterPage())
aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers(); aVisibleLayers = pTemplatePage->TRG_GetMasterPageVisibleLayers();
else else
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment