Kaydet (Commit) 6300794a authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#1209816 Dereference before null check

Change-Id: I125daf37f07c7b84289625d046abe8257c82e8d4
üst 3f0116e0
......@@ -75,7 +75,7 @@ SfxPrinter* SwView::GetPrinter( bool bCreate )
SfxPrinter *pPrt = pIDDA->getPrinter( bCreate );
if ( pOld != pPrt )
{
bool bWeb = 0 != PTR_CAST(SwWebView, this);
bool bWeb = 0 != dynamic_cast<SwWebView*>(this);
::SetAppPrintOptions( &GetWrtShell(), bWeb );
}
return pPrt;
......
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