提交 98fefafd 编写于 作者: J jurgen

RSV filters rendering fix

上级 2d22f450
...@@ -449,7 +449,9 @@ public abstract class LightGrid extends Canvas { ...@@ -449,7 +449,9 @@ public abstract class LightGrid extends Canvas {
if (refreshColumns) { if (refreshColumns) {
this.removeAll(); this.removeAll();
} else { } else {
this.resetData(); this.deselectAll();
topIndex = -1;
bottomIndex = -1;
} }
IGridContentProvider contentProvider = getContentProvider(); IGridContentProvider contentProvider = getContentProvider();
{ {
...@@ -1253,15 +1255,6 @@ public abstract class LightGrid extends Canvas { ...@@ -1253,15 +1255,6 @@ public abstract class LightGrid extends Canvas {
public void removeAll() public void removeAll()
{ {
checkWidget(); checkWidget();
resetData();
topColumns.clear();
columns.clear();
columnElements = new Object[0];
rowElements = new Object[0];
}
private void resetData() {
deselectAll(); deselectAll();
vScroll.setSelection(0); vScroll.setSelection(0);
hScroll.setSelection(0); hScroll.setSelection(0);
...@@ -1271,6 +1264,11 @@ public abstract class LightGrid extends Canvas { ...@@ -1271,6 +1264,11 @@ public abstract class LightGrid extends Canvas {
topIndex = -1; topIndex = -1;
bottomIndex = -1; bottomIndex = -1;
shiftSelectionAnchorColumn = null; shiftSelectionAnchorColumn = null;
topColumns.clear();
columns.clear();
columnElements = new Object[0];
rowElements = new Object[0];
} }
/** /**
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册