Skip to content

Commit

Permalink
Update the eraser tool after undoing/redoing
Browse files Browse the repository at this point in the history
  • Loading branch information
pastthepixels committed May 10, 2024
1 parent 80c2f7b commit 4ed875a
Showing 1 changed file with 4 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -205,6 +205,8 @@ public void undo() {
}
// Force redraw
postInvalidate();
// Re-initialise tools
if (tool == TOOLS.eraser) getTool().init();
}

/**
Expand All @@ -220,6 +222,8 @@ public void redo() {
}
// Force redraw
postInvalidate();
// Re-initialise tools
if (tool == TOOLS.eraser) getTool().init();
}

/**
Expand Down

0 comments on commit 4ed875a

Please sign in to comment.