sd/source/ui/view/DocumentRenderer.cxx |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

New commits:
commit 53aa05fdace0976dd22e5fa5f44dda7285a5559a
Author:     Caolán McNamara <caolan.mcnam...@collabora.com>
AuthorDate: Sat Dec 7 12:02:47 2024 +0000
Commit:     Caolán McNamara <caolan.mcnam...@collabora.com>
CommitDate: Tue Dec 10 10:18:56 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/+/178033
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caolan.mcnam...@collabora.com>

diff --git a/sd/source/ui/view/DocumentRenderer.cxx 
b/sd/source/ui/view/DocumentRenderer.cxx
index 467c3fba4bc9..3290e4a9348f 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.

Reply via email to