Skip to content

Commit

Permalink
#126 Allow insert an operator before selected term: fixed a bug
Browse files Browse the repository at this point in the history
  • Loading branch information
mkulesh committed Oct 17, 2022
1 parent 2faee65 commit 9374cd3
Showing 1 changed file with 5 additions and 8 deletions.
13 changes: 5 additions & 8 deletions app/src/main/java/com/mkulesh/micromath/formula/Equation.java
Original file line number Diff line number Diff line change
Expand Up @@ -195,14 +195,11 @@ public boolean isContentValid(ValidationPassType type)
{
arrayResult = new EquationArrayResult(this, rightTerm);
}
else
{
final CustomLayout termLayout = leftTerm.isTerm() ?
leftTerm.getTerm().getFunctionMainLayout() : null;
leftTerm.setError(errorMsg,
termLayout != null ? ErrorNotification.PARENT_LAYOUT : ErrorNotification.LAYOUT_BORDER,
termLayout);
}
final CustomLayout termLayout = leftTerm.isTerm() ?
leftTerm.getTerm().getFunctionMainLayout() : null;
leftTerm.setError(errorMsg,
termLayout != null ? ErrorNotification.PARENT_LAYOUT : ErrorNotification.LAYOUT_BORDER,
termLayout);
}
break;
}
Expand Down

0 comments on commit 9374cd3

Please sign in to comment.