f-spot r3544 - in trunk: . src/Widgets



Author: sdelcroix
Date: Wed Jan 16 10:43:35 2008
New Revision: 3544
URL: http://svn.gnome.org/viewvc/f-spot?rev=3544&view=rev

Log:
2008-01-16  Stephane Delcroix  <sdelcroix novell com>

	* src/Widgets/IconView.cs: fixing the rendering bug.


Modified:
   trunk/ChangeLog
   trunk/src/Widgets/IconView.cs

Modified: trunk/src/Widgets/IconView.cs
==============================================================================
--- trunk/src/Widgets/IconView.cs	(original)
+++ trunk/src/Widgets/IconView.cs	Wed Jan 16 10:43:35 2008
@@ -889,8 +889,10 @@
 				} catch (NotRatedException) {
 					rating = new FSpot.Widgets.RatingSmall (-1, false);
 				}
+				if (region.Intersect (area, out region)) {
 				rating.DisplayPixbuf.RenderToDrawable (BinWindow, Style.WhiteGC,
-						0, 0, region.X, region.Y, -1, -1, RgbDither.None, 0, 0);
+						0, 0, region.X, region.Y, -1, -1, RgbDither.None, region.X, region.Y);
+				}
 			}
 			if (DisplayDates) {
 				string date;



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