Spreadsheet: improve cyclic dependency exception handling

This commit is contained in:
Zheng, Lei
2019-09-29 17:57:23 +08:00
committed by wmayer
parent 2df4fb754b
commit c061a4df7e
3 changed files with 15 additions and 13 deletions

View File

@@ -585,9 +585,9 @@ bool Cell::getSpans(int &rows, int &columns) const
return isUsed(SPANS_SET);
}
void Cell::setException(const std::string &e)
void Cell::setException(const std::string &e, bool silent)
{
if(e.size() && owner && owner->sheet()) {
if(!silent && e.size() && owner && owner->sheet()) {
FC_ERR(owner->sheet()->getFullName() << '.'
<< address.toString() << ": " << e);
}