Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(955)

Unified Diff: chrome/browser/resources/file_manager/js/image_editor/image_editor.js

Issue 8747008: Photo Editor brightness tool fix. (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/file_manager/js/image_editor/image_editor.js
diff --git a/chrome/browser/resources/file_manager/js/image_editor/image_editor.js b/chrome/browser/resources/file_manager/js/image_editor/image_editor.js
index e8a79797fc59f08f0679852c42fc103ec2281307..ce24d93234c2e0ab1571a8c5e5e28413dda4c6f7 100644
--- a/chrome/browser/resources/file_manager/js/image_editor/image_editor.js
+++ b/chrome/browser/resources/file_manager/js/image_editor/image_editor.js
@@ -367,8 +367,11 @@ ImageEditor.prototype.leaveMode = function(commit) {
this.currentMode_.cleanUpUI();
if (commit) {
var self = this;
- this.commandQueue_.execute(this.currentMode_.getCommand());
- this.updateUndoRedo();
+ var command = this.currentMode_.getCommand();
+ if (command) { // Could be null if the user did not do anything.
+ this.commandQueue_.execute(command);
+ this.updateUndoRedo();
+ }
}
this.currentMode_.cleanUpCaches();
this.currentMode_ = null;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698