diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 11:56:18 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-05-24 13:03:47 +0100 |
commit | eb410d6dddeecc2b6c0c13cb57b39cd59012c250 (patch) | |
tree | a94ac322af0ea6397bd6cc45caea373833ce37a7 /sd | |
parent | 8e304f80bbb7e2d6bab449d97bc6cb59d73069f3 (diff) |
coverity#1027647 Unchecked dynamic_cast
Change-Id: I89a4cf7a8146205bc5c70e8e34111ff54afc5cf3
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/view/drviews2.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/view/drviews2.cxx b/sd/source/ui/view/drviews2.cxx index 99542d84971a..3959c116f2a0 100644 --- a/sd/source/ui/view/drviews2.cxx +++ b/sd/source/ui/view/drviews2.cxx @@ -3064,7 +3064,7 @@ void DrawViewShell::ExecChar( SfxRequest &rReq ) case SID_GROW_FONT_SIZE: { const SvxFontListItem* pFonts = dynamic_cast<const SvxFontListItem*>(GetDocSh()->GetItem( SID_ATTR_CHAR_FONTLIST ) ); - const FontList* pFontList = pFonts->GetFontList(); + const FontList* pFontList = pFonts ? pFonts->GetFontList() : NULL; if( pFontList ) { FuText::ChangeFontSize( nSId == SID_GROW_FONT_SIZE, NULL, pFontList, mpView ); |