Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -2362,6 +2362,9 @@ public void handleLayerEvent(ILayerEvent event) {
((IStructuralChangeEvent) event).isHorizontalStructureChanged()) {
IStructuralChangeEvent changeEvent = (IStructuralChangeEvent) event;
Collection<StructuralDiff> columnDiffs = changeEvent.getColumnDiffs();

boolean performUpdate = false;

if (columnDiffs != null && !columnDiffs.isEmpty()) {

int[] deletedPositions = getDeletedPositions(columnDiffs);
Expand All @@ -2379,6 +2382,8 @@ public void handleLayerEvent(ILayerEvent event) {
} else {
handleDeleteDiffs(deletedPositions);
}

performUpdate = true;
}

for (StructuralDiff diff : columnDiffs) {
Expand Down Expand Up @@ -2469,11 +2474,15 @@ public void handleLayerEvent(ILayerEvent event) {
doCommand(cmd);
}
}

performUpdate = true;
}
}

// update visible start positions of all groups
updateVisibleStartPositions();
if (performUpdate) {
// update visible start positions of all groups
updateVisibleStartPositions();
}
} else {
// trigger a consistency check as the details of the event
// probably where removed on converting the layer stack
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2351,6 +2351,9 @@ public void handleLayerEvent(ILayerEvent event) {
((IStructuralChangeEvent) event).isVerticalStructureChanged()) {
IStructuralChangeEvent changeEvent = (IStructuralChangeEvent) event;
Collection<StructuralDiff> rowDiffs = changeEvent.getRowDiffs();

boolean performUpdate = false;

if (rowDiffs != null && !rowDiffs.isEmpty()) {

int[] deletedPositions = getDeletedPositions(rowDiffs);
Expand All @@ -2368,6 +2371,8 @@ public void handleLayerEvent(ILayerEvent event) {
} else {
handleDeleteDiffs(deletedPositions);
}

performUpdate = true;
}

for (StructuralDiff diff : rowDiffs) {
Expand Down Expand Up @@ -2457,12 +2462,16 @@ public void handleLayerEvent(ILayerEvent event) {
for (UpdateRowGroupCollapseCommand cmd : collapseUpdates.values()) {
doCommand(cmd);
}

performUpdate = true;
}
}
}

// update visible start positions of all groups
updateVisibleStartPositions();
if (performUpdate) {
// update visible start positions of all groups
updateVisibleStartPositions();
}
} else {
// trigger a consistency check as the details of the event
// probably where removed on converting the layer stack
Expand Down