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

coverity#705479 Dereference null return value

Change-Id: Id8b6723e7d3d8a66f5a657628e1467edda509cfa
üst 224d2153
......@@ -489,9 +489,9 @@ void SmEditWindow::KeyInput(const KeyEvent& rKEvt)
// have doc-shell modified only for formula input/change and not
// cursor travelling and such things...
SmDocShell *pDocShell = GetDoc();
if (pDocShell)
pDocShell->SetModified( GetEditEngine()->IsModified() );
EditEngine *pEditEngine = GetEditEngine();
if (pDocShell && pEditEngine)
pDocShell->SetModified(pEditEngine->IsModified());
aModifyTimer.Start();
}
......
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