Author: sdelcroix
Date: Sun Feb 10 10:07:05 2008
New Revision: 3654
URL: http://svn.gnome.org/viewvc/f-spot?rev=3654&view=rev

Log:
bugfixing the rating thing

Modified:
   trunk/src/MainWindow.cs
   trunk/src/Widgets/Rating.cs

Modified: trunk/src/MainWindow.cs
==============================================================================
--- trunk/src/MainWindow.cs     (original)
+++ trunk/src/MainWindow.cs     Sun Feb 10 10:07:05 2008
@@ -1390,11 +1390,7 @@
                db.BeginTransaction ();
                foreach (int num in SelectedIds ()) {
                        p = query.Photos [num];
-
-                       if (r == -1)
-                               p.RemoveRating();
-                       else
-                               p.Rating = (uint) r;
+                       p.Rating = (uint) r;
                        query.Commit (num);
                }
                db.CommitTransaction ();

Modified: trunk/src/Widgets/Rating.cs
==============================================================================
--- trunk/src/Widgets/Rating.cs (original)
+++ trunk/src/Widgets/Rating.cs Sun Feb 10 10:07:05 2008
@@ -333,7 +333,7 @@
                        pbuf.Fill (0xffffff00);
                        
                        //Stars
-                       for (int i = 1; i < MaxRating; i ++)
+                       for (int i = 0; i < MaxRating; i ++)
                                if (i <= val - 1)
                                        IconRated.CopyArea (0, 0, 
IconRated.Width, IconRated.Height, 
                                                        pbuf, i * 
IconRated.Width, 0);
_______________________________________________
SVN-commits-list mailing list (read only)
http://mail.gnome.org/mailman/listinfo/svn-commits-list

Want to limit the commits to a few modules? Go to above URL, log in to edit 
your options and select the modules ('topics') you want.
Module maintainer? It is possible to set the reply-to to your development 
mailing list. Email [EMAIL PROTECTED] if interested.

Reply via email to