[longomatch/redesign: 70/75] 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: 70/75] Don't check for null Pixbuf in the setter
- Date: Sun, 6 Feb 2011 13:42:50 +0000 (UTC)
commit 1138f146621d908d4b496e080a687b077e7f6f36
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]