sd/source/ui/view/DocumentRenderer.cxx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-)
New commits: commit d923fd3d44df8e2563a287d36754d7719868d1ac Author: Caolán McNamara <caolan.mcnam...@collabora.com> AuthorDate: Sat Dec 7 12:02:47 2024 +0000 Commit: Nagy Tibor <tibor.nagy.ext...@allotropia.de> CommitDate: Mon Dec 9 15:41:39 2024 +0100 cid#1636576 Dereference null return value since: commit 43e511e642a2ce7026b30ea5c212940ff3eb522e 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.mcnam...@collabora.com> Tested-by: Jenkins (cherry picked from commit c97decfe2e4544f76a2b6f5704928cad0e30b56e) Reviewed-on: https://gerrit.libreoffice.org/c/core/+/178147 Tested-by: allotropia jenkins <jenk...@allotropia.de> Reviewed-by: Nagy Tibor <tibor.nagy.ext...@allotropia.de> diff --git a/sd/source/ui/view/DocumentRenderer.cxx b/sd/source/ui/view/DocumentRenderer.cxx index 3331e2463036..e18b3572d1fa 100644 --- a/sd/source/ui/view/DocumentRenderer.cxx +++ b/sd/source/ui/view/DocumentRenderer.cxx @@ -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.