diff options
Diffstat (limited to 'sd/source/ui/animations/CustomAnimationDialog.cxx')
-rw-r--r-- | sd/source/ui/animations/CustomAnimationDialog.cxx | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sd/source/ui/animations/CustomAnimationDialog.cxx b/sd/source/ui/animations/CustomAnimationDialog.cxx index 625a3049695e..41d7685798d4 100644 --- a/sd/source/ui/animations/CustomAnimationDialog.cxx +++ b/sd/source/ui/animations/CustomAnimationDialog.cxx @@ -265,11 +265,10 @@ SdFontPropertyBox::SdFontPropertyBox(weld::Label* pLabel, weld::Container* pPare mxControl->show(); pLabel->set_mnemonic_widget(mxControl.get()); - SfxObjectShell* pDocSh = SfxObjectShell::Current(); const FontList* pFontList = nullptr; bool bMustDelete = false; - if (pDocSh) + if (SfxObjectShell* pDocSh = SfxObjectShell::Current()) { auto pItem = pDocSh->GetItem( SID_ATTR_CHAR_FONTLIST ); if (pItem) |