Kaydet (Commit) 4e0d635f authored tarafından Caolán McNamara's avatar Caolán McNamara

coverity#736861 Dereference before null check

Change-Id: I4930657852f0ee4c3d7a751b9c90a2a65d329c40
üst 4d9d727a
...@@ -818,7 +818,7 @@ void SwDocShell::Draw( OutputDevice* pDev, const JobSetup& rSetup, ...@@ -818,7 +818,7 @@ void SwDocShell::Draw( OutputDevice* pDev, const JobSetup& rSetup,
pDev->SetFillColor(); pDev->SetFillColor();
pDev->SetLineColor(); pDev->SetLineColor();
pDev->SetBackground(); pDev->SetBackground();
bool bWeb = 0 != PTR_CAST(SwWebDocShell, this); const bool bWeb = this->ISA(SwWebDocShell);
SwPrintData aOpts; SwPrintData aOpts;
SwViewShell::PrtOle2( pDoc, SW_MOD()->GetUsrPref(bWeb), aOpts, pDev, aRect ); SwViewShell::PrtOle2( pDoc, SW_MOD()->GetUsrPref(bWeb), aOpts, pDev, aRect );
pDev->Pop(); pDev->Pop();
......
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