[longomatch/redesign: 71/82] Don't check for null Pixbuf in the setter
- From: Andoni Morales Alastruey <amorales src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [longomatch/redesign: 71/82] Don't check for null Pixbuf in the setter
- Date: Mon, 14 Mar 2011 00:22:47 +0000 (UTC)
commit f405758bd74ef6b94110edb445e42b735d641019
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]