[longomatch/redesign2: 70/140] Don't check for null Pixbuf in the setter



commit 0903a5268e4a3b70676e0c8b61c2c380cdecfd11
Author: Andoni Morales Alastruey <ylatuya gmail com>
Date:   Mon Jan 31 22:04:59 2011 +0100

    Don't check for null Pixbuf in the setter

 LongoMatch/Store/PixbufTimeNode.cs |    4 +---
 1 files changed, 1 insertions(+), 3 deletions(-)
---
diff --git a/LongoMatch/Store/PixbufTimeNode.cs b/LongoMatch/Store/PixbufTimeNode.cs
index 1aa1107..a9c7e0e 100644
--- a/LongoMatch/Store/PixbufTimeNode.cs
+++ b/LongoMatch/Store/PixbufTimeNode.cs
@@ -49,9 +49,7 @@ namespace LongoMatch.Store
 					return new Pixbuf(thumbnailBuf);
 				else return null;
 			}set {
-				if (value != null)
-					ScaleAndSave(value);
-				else thumbnailBuf = null;
+				ScaleAndSave(value);
 			}
 		}
 		#endregion



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