diff --git a/src/com/bytezone/diskbrowser/visicalc/Cell.java b/src/com/bytezone/diskbrowser/visicalc/Cell.java index 591d895..1618e13 100644 --- a/src/com/bytezone/diskbrowser/visicalc/Cell.java +++ b/src/com/bytezone/diskbrowser/visicalc/Cell.java @@ -192,21 +192,23 @@ class Cell implements Comparable, Value @Override public String getText () { - assert type == CellType.VALUE; + assert type == CellType.VALUE : "Cell type: " + type; return value.getText (); } @Override public boolean isError () { - assert type == CellType.VALUE; + assert type == CellType.VALUE : "Cell type: " + type; return value.isError (); } @Override public boolean isNotAvailable () { - assert type == CellType.VALUE; + // assert type == CellType.VALUE : "Cell type: " + type; + if (!isValue ()) + return true; return value.isNotAvailable (); }