Version: 0.9.2-final (using KDE 3.5.8, Kubuntu (gutsy) 4:3.5.8-0ubuntu3.1) Compiler: Target: i486-linux-gnu OS: Linux (i686) release 2.6.22-14-386 Ratings for a picture are able to exceed 5 stars, which doesn't appear intentional! To reproduce: click and hold within the stars on the rating "meter" in the comments / tags sidebar. Then drag right to increase the rating. Drag beyond the limit of the rating widget and then release. Apply this and the picture will display a rating greater than 5 stars.
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