Skip to content

Commit

Permalink
core: fix typo in delete cell method
Browse files Browse the repository at this point in the history
  • Loading branch information
wisk committed Jul 11, 2014
1 parent df231b5 commit 7baca0f
Showing 1 changed file with 7 additions and 2 deletions.
9 changes: 7 additions & 2 deletions src/core/document.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -420,11 +420,16 @@ bool Document::SetCellWithLabel(Address const& rAddr, Cell::SPtr spCell, Label c

bool Document::DeleteCell(Address const& rAddr)
{
return m_spDatabase->DeleteCellData(rAddr);
m_DocumentUpdatedSignal();
if (!m_spDatabase->DeleteCellData(rAddr))
return false;

Address::List DelAddr;
DelAddr.push_back(rAddr);
m_AddressUpdatedSignal(DelAddr);
m_DocumentUpdatedSignal();
RemoveLabelIfNeeded(rAddr);

return true;
}

MultiCell* Document::GetMultiCell(Address const& rAddr)
Expand Down

0 comments on commit 7baca0f

Please sign in to comment.