f-spot r3654 - in trunk/src: . Widgets
- From: sdelcroix svn gnome org
- To: svn-commits-list gnome org
- Subject: f-spot r3654 - in trunk/src: . Widgets
- Date: Sun, 10 Feb 2008 10:07:06 +0000 (GMT)
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);
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]