summaryrefslogtreecommitdiff
path: root/sd
diff options
context:
space:
mode:
authorCaolán McNamara <caolanm@redhat.com>2014-04-04 10:39:21 +0100
committerCaolán McNamara <caolanm@redhat.com>2014-04-04 12:14:20 +0100
commit9754ac4ee7047ab0f5fd8369aa617da210e3aed5 (patch)
tree30455d3119b498b0bd02177324ae380f13b1ed23 /sd
parent3bc729b4b97ff3df67bb7af541b088f88248a1ec (diff)
coverity#704743 Unchecked dynamic_cast
Change-Id: I35067c31c3a083791436eba9690d592f0099d3b5
Diffstat (limited to 'sd')
-rw-r--r--sd/source/ui/dlg/docprev.cxx2
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();