Kaydet (Commit) 1c27b0a4 authored tarafından Kohei Yoshida's avatar Kohei Yoshida

Reduce indentation by early bail-out.

Change-Id: Iaac628d2629bf1ff96fd1709e358ae9eed3fca02
üst 1b6e87fc
......@@ -357,8 +357,13 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
ScDocShellModificator aModificator( *pDocSh );
ScEditableTester aTester( pDoc, nCol,nRow, nCol,nRow, rMark );
if (aTester.IsEditable())
if (!aTester.IsEditable())
{
ErrorMessage(aTester.GetMessageId());
PaintArea(nCol, nRow, nCol, nRow); // possibly the edit-engine is still painted there
return;
}
if ( bRecord )
rFunc.EnterListAction( STR_UNDO_ENTERDATA );
......@@ -574,12 +579,6 @@ void ScViewFunc::EnterData( SCCOL nCol, SCROW nRow, SCTAB nTab,
aModificator.SetDocumentModified();
lcl_PostRepaintCondFormat( pDoc->GetCondFormat( nCol, nRow, nTab ), pDocSh );
}
else
{
ErrorMessage(aTester.GetMessageId());
PaintArea( nCol, nRow, nCol, nRow ); // possibly the edit-engine is still painted there
}
}
// enter value in single cell (on nTab only)
......
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