diff options
author | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 10:39:21 +0100 |
---|---|---|
committer | Caolán McNamara <caolanm@redhat.com> | 2014-04-04 12:14:20 +0100 |
commit | 9754ac4ee7047ab0f5fd8369aa617da210e3aed5 (patch) | |
tree | 30455d3119b498b0bd02177324ae380f13b1ed23 /sd | |
parent | 3bc729b4b97ff3df67bb7af541b088f88248a1ec (diff) |
coverity#704743 Unchecked dynamic_cast
Change-Id: I35067c31c3a083791436eba9690d592f0099d3b5
Diffstat (limited to 'sd')
-rw-r--r-- | sd/source/ui/dlg/docprev.cxx | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/sd/source/ui/dlg/docprev.cxx b/sd/source/ui/dlg/docprev.cxx index 3d42a5272d7c..ebb939dead5c 100644 --- a/sd/source/ui/dlg/docprev.cxx +++ b/sd/source/ui/dlg/docprev.cxx @@ -148,7 +148,7 @@ void SdDocPreviewWin::Paint( const Rectangle& rRect ) void SdDocPreviewWin::startPreview() { ::sd::DrawDocShell* pDocShell = dynamic_cast< ::sd::DrawDocShell * >( mpObj ); - if( mpObj ) + if( pDocShell ) { SdDrawDocument* pDoc = pDocShell->GetDoc(); |