Skip to content

Commit

Permalink
CPN arc successor and predecessor issue - fix 2081357 (#180)
Browse files Browse the repository at this point in the history
  • Loading branch information
srba authored Sep 27, 2024
2 parents 6eca457 + 8f29529 commit 509647c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean hasVariable(List<Variable> variables) {

@Override
public ColorExpression replace(Expression object1, Expression object2,boolean replaceAllInstances) {
if (object1.toString().equals(this.toString()) && object2 instanceof ColorExpression) {
if (this.equals(object1) && object2 instanceof ColorExpression) {
ColorExpression obj2 = (ColorExpression)object2;
obj2.setParent(parent);
return obj2;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ public boolean hasVariable(List<Variable> variables) {

@Override
public ColorExpression replace(Expression object1, Expression object2,boolean replaceAllInstances) {
if (object1.toString().equals(this.toString()) && object2 instanceof ColorExpression) {
if (this.equals(object1) && object2 instanceof ColorExpression) {
ColorExpression obj2 = (ColorExpression)object2;
obj2.setParent(parent);
return obj2;
Expand Down

0 comments on commit 509647c

Please sign in to comment.