sd/source/ui/view/frmview.cxx |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 8ecadb353337ac041e72b038f90f66716ee157f0
Author:     Caolán McNamara <[email protected]>
AuthorDate: Thu Jan 22 13:02:47 2026 +0000
Commit:     Miklos Vajna <[email protected]>
CommitDate: Wed Jan 28 13:18:19 2026 +0100

    cid#1680366 Unchecked dynamic_cast
    
    Change-Id: I92e29cbb4ba34cf0d6addfd106f8370b7befe9a3
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197915
    Reviewed-by: Miklos Vajna <[email protected]>
    Tested-by: Jenkins CollaboraOffice <[email protected]>

diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 0f48f7b9899f..ef3f227c63f3 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -481,7 +481,7 @@ void FrameView::WriteUserDataSequence ( css::uno::Sequence 
< css::beans::Propert
     aUserData.emplace_back( sUNO_View_GridSnapWidthYDenominator, Any( 
GetSnapGridWidthY().GetDenominator() ) );
     aUserData.emplace_back( sUNO_View_IsAngleSnapEnabled, Any( 
IsAngleSnapEnabled() ) );
     aUserData.emplace_back( sUNO_View_SnapAngle, Any( 
static_cast<sal_Int32>(GetSnapAngle()) ) );
-    aUserData.emplace_back( sUNO_View_HasCanvasPage, Any( 
pDrawDocument->HasCanvasPage() ) );
+    aUserData.emplace_back( sUNO_View_HasCanvasPage, Any( pDrawDocument && 
pDrawDocument->HasCanvasPage() ) );
 
     const sal_Int32 nOldLength = rValues.getLength();
     rValues.realloc( nOldLength + aUserData.size() );

Reply via email to