Cell changes should also flush column precomputes.

git-svn-id: http://google-refine.googlecode.com/svn/trunk@267 7d457c2a-affb-35e4-300a-418c747d4874
This commit is contained in:
David Huynh 2010-03-10 07:42:57 +00:00
parent 0160b6841d
commit 6bf5418f9d

View File

@ -24,10 +24,14 @@ public class CellChange implements Change {
public void apply(Project project) { public void apply(Project project) {
project.rows.get(row).setCell(cellIndex, newCell); project.rows.get(row).setCell(cellIndex, newCell);
project.columnModel.getColumnByCellIndex(cellIndex).clearPrecomputes();
} }
public void revert(Project project) { public void revert(Project project) {
project.rows.get(row).setCell(cellIndex, oldCell); project.rows.get(row).setCell(cellIndex, oldCell);
project.columnModel.getColumnByCellIndex(cellIndex).clearPrecomputes();
} }
public void save(Writer writer, Properties options) throws IOException { public void save(Writer writer, Properties options) throws IOException {