[blam: 5/11] Cast currentItem.Content so we get the content and not the type



commit 995a3a9b5db4b7f769e965187e7f6d7fd39fdc0b
Author: Carlos MartÃn Nieto <carlos cmartin tk>
Date:   Fri Aug 26 02:57:40 2011 +0200

    Cast currentItem.Content so we get the content and not the type
    
    Signed-off-by: Carlos MartÃn Nieto <carlos cmartin tk>

 src/ItemView.cs |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
---
diff --git a/src/ItemView.cs b/src/ItemView.cs
index 97270f4..c603b2f 100644
--- a/src/ItemView.cs
+++ b/src/ItemView.cs
@@ -114,7 +114,7 @@ namespace Imendio.Blam {
                   currentItem.PublishDate.ToString("D", System.Globalization.CultureInfo.CurrentUICulture) :
 				  Catalog.GetString("[No date available]");
             string text = currentItem.Summary != null ? currentItem.Summary.Text
-                : currentItem.Content != null ? currentItem.Content.ToString() : null;
+                : currentItem.Content != null ? (currentItem.Content as TextSyndicationContent).Text : null;
             string title   = HtmlUtils.Escape(currentItem.Title.Text);
             string url     = currentItem.Links[0].Uri.ToString();
             baseDir        = "file://" + theme.Path;



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