Skip to content

Commit

Permalink
Spreadsheet: Fixed bug in dependency tracking between objects.
Browse files Browse the repository at this point in the history
  • Loading branch information
eivindkv authored and wwmayer committed Jun 25, 2015
1 parent 2e7b460 commit 3a69c92
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions src/Mod/Spreadsheet/App/Sheet.cpp
Expand Up @@ -856,6 +856,15 @@ void Sheet::clear(CellAddress address, bool all)

cells.clear(address);

// Update dependencies
std::set<App::DocumentObject*> ds(cells.getDocDeps());

// Make sure we don't reference ourselves
ds.erase(this);

std::vector<App::DocumentObject*> dv(ds.begin(), ds.end());
docDeps.setValues(dv);

propAddress.erase(prop);
props.removeDynamicProperty(addr.c_str());
}
Expand Down

0 comments on commit 3a69c92

Please sign in to comment.