[longomatch/redesign3: 70/156] 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/redesign3: 70/156] Don't check for null Pixbuf in the setter
- Date: Wed, 17 Aug 2011 22:22:04 +0000 (UTC)
commit 4d15fbba29aa16a9b9c5983807f743f2070c2d14
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]