OSDN Git Service

アイコンキャッシュに存在しないキーを取得しようとする不具合を修正
authoranis774 <anis774@users.sourceforge.jp>
Wed, 8 Sep 2010 23:50:25 +0000 (23:50 +0000)
committerKimura Youichi <kim.upsilon@bucyou.net>
Sat, 18 Feb 2012 14:15:18 +0000 (23:15 +0900)
git-svn-id: http://svn.sourceforge.jp/svnroot/tween/trunk@832 e39ad16e-3079-482e-bb30-4b4d378143b6

Tween/Tween.vb

index 2d1e82e..71a25d5 100644 (file)
@@ -3846,7 +3846,7 @@ Public Class TweenMain
             End If
         Next
 
-        If tw.DetailIcon.ContainsKey(e.Item.ImageKey) Then
+        If TIconDic.ContainsKey(e.Item.ImageKey) Then
             e.Graphics.InterpolationMode = Drawing2D.InterpolationMode.High
             e.Graphics.DrawImage(tw.DetailIcon(e.Item.ImageKey), New Rectangle(x, e.Bounds.Top, Math.Min(_iconSz, e.Item.ListView.Columns(0).Width), _iconSz))
         End If
@@ -4219,7 +4219,7 @@ RETRY:
         If Not String.IsNullOrEmpty(_curPost.RetweetedBy) Then
             NameLabel.Text += " (RT:" + _curPost.RetweetedBy + ")"
         End If
-        If _curPost.ImageUrl IsNot Nothing Then
+        If Not String.IsNullOrEmpty(_curPost.ImageUrl) AndAlso TIconDic.ContainsKey(_curPost.ImageUrl) Then
             UserPicture.Image = TIconDic(_curPost.ImageUrl)
         Else
             UserPicture.Image = Nothing