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

Unified Diff: ui/file_manager/gallery/js/image_editor/image_view.js

Issue 403733002: Gallery: Fix the slide show mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed. Created 6 years, 5 months 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: ui/file_manager/gallery/js/image_editor/image_view.js
diff --git a/ui/file_manager/gallery/js/image_editor/image_view.js b/ui/file_manager/gallery/js/image_editor/image_view.js
index 312fe726e42d58fd0e187dc959cdf7049855edcb..c85efad8588fdb56ae46a54f9edd5fa757b5bc00 100644
--- a/ui/file_manager/gallery/js/image_editor/image_view.js
+++ b/ui/file_manager/gallery/js/image_editor/image_view.js
@@ -129,10 +129,12 @@ ImageView.prototype.draw = function() {
* change or offset change) with animation.
*/
ImageView.prototype.applyViewportChange = function() {
- this.setTransform(
- this.screenImage_,
- new ImageView.Effect.None(),
- ImageView.Effect.DEFAULT_DURATION);
+ if (this.screenImage_) {
+ this.setTransform(
+ this.screenImage_,
+ new ImageView.Effect.None(),
+ ImageView.Effect.DEFAULT_DURATION);
+ }
};
/**
« 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