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

Unified Diff: chrome/browser/resources/file_manager/foreground/js/photo/slide_mode.js

Issue 113993006: Fix duplicated images when editing pictures. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years 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/foreground/js/photo/slide_mode.js
diff --git a/chrome/browser/resources/file_manager/foreground/js/photo/slide_mode.js b/chrome/browser/resources/file_manager/foreground/js/photo/slide_mode.js
index 5154dbf45062b512d465a27c984469b1ebfa1335..d9b47395bb90bdeb84e8d66f802813f90ae7a317 100644
--- a/chrome/browser/resources/file_manager/foreground/js/photo/slide_mode.js
+++ b/chrome/browser/resources/file_manager/foreground/js/photo/slide_mode.js
@@ -979,7 +979,7 @@ SlideMode.prototype.saveCurrentImage_ = function(callback) {
ImageUtil.metrics.recordUserAction(ImageUtil.getMetricName('Edit'));
}
- if (util.isSameEntry(oldEntry, item.getEntry())) {
+ if (!util.isSameEntry(oldEntry, item.getEntry())) {
this.dataModel_.splice(
this.getSelectedIndex(), 0, new Gallery.Item(oldEntry));
// The ribbon will ignore the splice above and redraw after the
« 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