sd/source/ui/view/frmview.cxx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
New commits: commit d44849bb85995f71c93cbc7c78f7861ff1c0d63f Author: Caolán McNamara <[email protected]> AuthorDate: Thu Jan 22 13:02:47 2026 +0000 Commit: Caolán McNamara <[email protected]> CommitDate: Fri Jan 23 10:03:01 2026 +0100 cid#1680366 Unchecked dynamic_cast Change-Id: I92e29cbb4ba34cf0d6addfd106f8370b7befe9a3 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/197811 Tested-by: Jenkins Reviewed-by: Caolán McNamara <[email protected]> diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx index 2d6cc454bb02..e67e49830e9c 100644 --- a/sd/source/ui/view/frmview.cxx +++ b/sd/source/ui/view/frmview.cxx @@ -480,7 +480,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() );
