diff --git a/TODO.md b/TODO.md index 1ddab3a..302c6c0 100644 --- a/TODO.md +++ b/TODO.md @@ -49,7 +49,6 @@ ### Issues -* [Selection is not included in the image when you save (it should deselect)](https://github.com/1j01/jspaint/issues/14) * ["Quick Undo" stopped working in Chrome](https://github.com/1j01/jspaint/issues/9) * [Resizing the canvas or selection is broken when magnified](https://github.com/1j01/jspaint/issues/13) * If you open an image it resets the zoom but if you're on the magnification tool it doesn't update the options diff --git a/src/functions.js b/src/functions.js index 095bfd1..b72d44e 100644 --- a/src/functions.js +++ b/src/functions.js @@ -232,6 +232,7 @@ function file_load_from_url(){ } function file_save(){ + deselect(); if(file_name.match(/\.svg$/)){ file_name = file_name.replace(/\.svg$/, "") + ".png"; //TODO: update_title();? @@ -245,6 +246,7 @@ function file_save(){ } function file_save_as(){ + deselect(); if(window.chrome && chrome.fileSystem && chrome.fileSystem.chooseEntry){ chrome.fileSystem.chooseEntry({ type: 'saveFile',