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

coverity#1294409 Dereference after null check

pDoc isn't null here

Change-Id: Icf705f2bc67cb08a1920aea5965eb6f0e4786ada
üst e727d4ae
...@@ -243,7 +243,7 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce ) ...@@ -243,7 +243,7 @@ MapMode ScGridWindow::GetDrawMapMode( bool bForce )
// work in the logic coordinates (ideally 100ths of mm - so that it is // work in the logic coordinates (ideally 100ths of mm - so that it is
// the same as editeng and drawinglayer), and get rid of all the // the same as editeng and drawinglayer), and get rid of all the
// SetMapMode's and other unneccessary fun we have with pixels // SetMapMode's and other unneccessary fun we have with pixels
if (pDoc && pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering()) if (pDoc->GetDrawLayer() && pDoc->GetDrawLayer()->isTiledRendering())
{ {
return pViewData->GetLogicMode(); return pViewData->GetLogicMode();
} }
......
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