cid#1636576 Dereference null return value

since:

commit 43e511e642
CommitDate: Wed Dec 4 10:17:24 2024 +0100

    tdf#88226 sd: fix cutting off the overflow text on the notes print page

Change-Id: I0a982a0a4213e220ec1bbd166e08bf14191eed0b
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178032
Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Tested-by: Jenkins
This commit is contained in:
Caolán McNamara 2024-12-07 12:02:47 +00:00
parent 88986086f9
commit c97decfe2e

View file

@ -2454,9 +2454,8 @@ private:
rInfo.meOrientation,
nPaperBin));
}
else // Notes
else if (SdPage* pPage = GetFilteredPage(nPageIndex, PageKind::Notes))// Notes
{
SdPage* pPage = GetFilteredPage(nPageIndex, PageKind::Notes);
SdDrawDocument* pDocument = mrBase.GetMainViewShell()->GetDoc();
// Clone the current page to create an independent instance.