[sushi/wip/cosimoc/no-clutter] image: delete scaledSurface when resetting pixbuf



commit 6937f2effa887402f18074dbefa9acb1eeb085d3
Author: Cosimo Cecchi <cosimoc gnome org>
Date:   Sat Apr 8 21:24:19 2017 -0700

    image: delete scaledSurface when resetting pixbuf

 src/js/viewers/image.js |    1 +
 1 files changed, 1 insertions(+), 0 deletions(-)
---
diff --git a/src/js/viewers/image.js b/src/js/viewers/image.js
index 554e922..ca276d9 100644
--- a/src/js/viewers/image.js
+++ b/src/js/viewers/image.js
@@ -118,6 +118,7 @@ const Image = new Lang.Class({
 
     set pix(p) {
         this._pix = p;
+        this._scaledSurface = null;
         this.queue_resize();
     },
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]