[niepce] ui+rust: Fix the rating label drawing



commit cd46f8e8557165662d666c0a78b3ccbebb17cd23
Author: Hubert Figuière <hub figuiere net>
Date:   Wed Jan 22 02:44:40 2020 -0500

    ui+rust: Fix the rating label drawing
    
    - use an inclusive bound in the loop

 crates/npc-fwk/src/toolkit/widgets/rating_label.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
---
diff --git a/crates/npc-fwk/src/toolkit/widgets/rating_label.rs 
b/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
index 5abc8d2..937dd21 100644
--- a/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
+++ b/crates/npc-fwk/src/toolkit/widgets/rating_label.rs
@@ -63,7 +63,7 @@ impl RatingLabel {
         let mut y = y;
         y -= h as f64;
         let mut x = x;
-        for i in 1..5 {
+        for i in 1..=5 {
             if i <= rating {
                 cr.set_source_pixbuf(star, x, y);
             } else {


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