Kaydet (Commit) 9754ac4e authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#704743 Unchecked dynamic_cast

Change-Id: I35067c31c3a083791436eba9690d592f0099d3b5
üst 3bc729b4
......@@ -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();
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment