[f-spot] avoid changing the Pixbuf on HandleDone if the pixbuf is already the right one



commit 75feab829a12a2ce4826a27431d5c8b080cae39e
Author: Stephane Delcroix <stephane delcroix org>
Date:   Tue Jun 16 13:13:16 2009 +0200

    avoid changing the Pixbuf on HandleDone if the pixbuf is already the right one

 src/PhotoImageView.cs |    3 ++-
 1 files changed, 2 insertions(+), 1 deletions(-)
---
diff --git a/src/PhotoImageView.cs b/src/PhotoImageView.cs
index 873f862..cef140f 100644
--- a/src/PhotoImageView.cs
+++ b/src/PhotoImageView.cs
@@ -183,7 +183,8 @@ namespace FSpot.Widgets {
 					this.ZoomFit ();
 				}
 			} else {
-				this.Pixbuf = loader.Pixbuf;
+				if (Pixbuf != loader.Pixbuf)
+					Pixbuf = loader.Pixbuf;
 
 				if (!loader.Prepared || !ShowProgress) {
 					this.ZoomFit ();



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