Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

version 3.3.6 #68

Merged
merged 3 commits into from
Sep 14, 2017
Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
#64 - update to sending image to editor
  • Loading branch information
viliusle committed Sep 14, 2017
commit 0d013ea4615aaab6cbd9f763754f4059ff804d40
9 changes: 9 additions & 0 deletions js/file.js
Original file line number Diff line number Diff line change
Expand Up @@ -172,9 +172,18 @@ function FILE_CLASS() {
LAYER.layer_add(name);
LAYER.layer_remove(1);

if (img.width > WIDTH || img.height > HEIGHT) {
if (img.width > WIDTH)
WIDTH = img.width;
if (img.height > HEIGHT)
HEIGHT = img.height;
LAYER.set_canvas_size();
}

//draw canvas
canvas_active().drawImage(img, 0, 0);
IMAGE.trim();
GUI.zoom_auto(true);
};

this.open_handler = function (e) {
Expand Down