Commit c8eee2f1 authored by kskrygan's avatar kskrygan
Browse files

fixes due to review: compare by identity

parent e74a9437
Branches unavailable Tags unavailable
No related merge requests found
Showing with 3 additions and 3 deletions
+3 -3
......@@ -98,7 +98,7 @@ abstract class UndoRedo {
Set<DocumentReference> clashing = getStackHolder().collectClashingActions(myUndoableGroup);
if (!clashing.isEmpty()) {
UndoableGroup globalUndoableGroup = getStackHolder().findGlobalUndoableGroup(myUndoableGroup.getCommandTimestamp());
UndoableGroup globalUndoableGroup = getStackHolder().findGlobalUndoableGroup(myUndoableGroup);
if (globalUndoableGroup != null) {
if(isRedo())
myManager.redo(null);
......
......@@ -269,9 +269,9 @@ class UndoRedoStacksHolder {
}
@Nullable
public UndoableGroup findGlobalUndoableGroup(int timestamp) {
public UndoableGroup findGlobalUndoableGroup(UndoableGroup timestamp) {
for (UndoableGroup group : myGlobalStack) {
if (group.getCommandTimestamp() == timestamp) {
if (group == timestamp) {
return group;
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment