Skip to content

Commit

Permalink
setLegal instead of isLegal
Browse files Browse the repository at this point in the history
  • Loading branch information
DawnTheWitch committed Nov 26, 2023
1 parent 2479693 commit 5be2163
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/ProofTools/DeiterationTool.ts
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ export function deiterationMouseDown(event: MouseEvent) {
currentProofTree = new AEGTree(treeContext.getLastProofStep().tree.sheet);
currentNode = currentProofTree.getLowestNode(currentPoint);

isLegal();
setLegal();
}

/**
Expand All @@ -46,7 +46,7 @@ export function deiterationMouseMove(event: MouseEvent) {
currentNode = currentProofTree.getLowestNode(currentPoint);
redrawProof();

isLegal();
setLegal();
}

/**
Expand Down Expand Up @@ -76,7 +76,7 @@ export function deiterationMouseUp(event: MouseEvent) {
/**
* Helper function to determine if the currently selected node is a legal node and highlight it.
*/
function isLegal() {
function setLegal() {
if (
currentNode !== null &&
!(currentNode instanceof CutNode && currentNode.ellipse === null) &&
Expand Down

0 comments on commit 5be2163

Please sign in to comment.