summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-01 20:17:51 +0100
committerCaolán McNamara <caolan.mcnamara@collabora.com>2024-05-02 00:13:16 +0200
commitff79a22fd04f9bbb5f4f67f21862db3a531de833 (patch)
treeb75c109aef8281b73b51c1ebdd2c783638f6e087 /sd
parent85f733a9242339d8e92f992ff1ad6d1b99d3f383 (diff)
cid#1596707 Unchecked dynamic_cast
Change-Id: I2067f335dfacf2dfb4b5b18b54c738f3fba4c375 Reviewed-on: https://gerrit.libreoffice.org/c/core/+/166981 Reviewed-by: Caolán McNamara <caolan.mcnamara@collabora.com> Tested-by: Caolán McNamara <caolan.mcnamara@collabora.com>
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/view/frmview.cxx3
1 files changed, 2 insertions, 1 deletions
diff --git a/sd/source/ui/view/frmview.cxx b/sd/source/ui/view/frmview.cxx
index 88ae6825738b..1fa0c4eba45d 100644
--- a/sd/source/ui/view/frmview.cxx
+++ b/sd/source/ui/view/frmview.cxx
@@ -282,8 +282,9 @@ void FrameView::Update(SdOptions const * pOptions)
return;
SdDrawDocument* pDrawDocument = dynamic_cast<SdDrawDocument*>(&GetModel());
+ const bool bImpress = pDrawDocument && pDrawDocument->GetDocumentType() == DocumentType::Impress;
- if (pDrawDocument->GetDocumentType() == DocumentType::Impress)
+ if (bImpress)
{
mbRuler = officecfg::Office::Impress::Layout::Display::Ruler::get();
SetDragStripes( officecfg::Office::Impress::Layout::Display::Guide::get() );