Rename undoable for enlarging for paste

main
Isaiah Odhner 2019-12-15 23:08:40 -05:00
parent 2f1c431f3f
commit 98c44fe2b9
1 changed files with 1 additions and 1 deletions

View File

@ -810,7 +810,7 @@ function paste(img){
$w.close();
// Extra undoable just for the resize; the paste gets its own
// TODO: enlarge icon
undoable({name: "Paste: Enlarge"}, () => {
undoable({name: "Enlarge Canvas For Paste"}, () => {
const original = ctx.getImageData(0, 0, canvas.width, canvas.height);
canvas.width = Math.max(original.width, img.width);
canvas.height = Math.max(original.height, img.height);