Summary: | Ratings can exceed 5 stars | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | Mark Williamson <maw48> |
Component: | Tags-Rating | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | NOR | ||
Version: | unspecified | ||
Target Milestone: | --- | ||
Platform: | unspecified | ||
OS: | Linux | ||
Latest Commit: | Version Fixed In: | 0.9.3 | |
Sentry Crash Report: | |||
Attachments: | ensure rating<=5 when dragging with the mouse |
Description
Mark Williamson
2007-10-26 01:52:32 UTC
Hi Mark, thanks for the report! I can reproduce and it seems simple to fix, compile is running... (note: B.K.O web-interface seems broken, so I don't know when I can attach the fix - if the fix works ;-) Best, Arnd Created attachment 21914 [details]
ensure rating<=5 when dragging with the mouse
In RatingWidget::mouseMoveEvent it was possible to generate
values >=5 for the position of the mouse (values < 0 are not possible
as the mouse position is always >=0). This
value was directly used as d->rating.
The attached patch ensures that pos<=RatingMax.
SVN commit 729686 by abaecker: Ensure that rating cannot be larger than RatingMax when dragging the mouse. CCBUGS: 151357 TODO:KDE4PORT M +2 -1 NEWS M +2 -0 digikam/ratingwidget.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=729686 SVN commit 729699 by abaecker: Ensure that rating cannot be smaller than RatingMin when dragging the mouse. CCBUGS: 151357 TODO:KDE4PORT M +2 -0 ratingwidget.cpp WebSVN link: http://websvn.kde.org/?view=rev&revision=729699 patch backported to KDE4. I close this file now. Gilles Caulier Hi! Thanks, I'm glad I could help. Don't worry about getting the patch online on my account; I'm happy to know it's fixed. It's not really causing me much difficulty (although finding 7 star rating pictures is a bit surprising!), I'm just glad my sloppy mouse work led me to find something useful ;-) Digikam is awesome! Cheers, Mark |