Summary: | Text Filter broken [patch] | ||
---|---|---|---|
Product: | [Applications] digikam | Reporter: | DrSlony <bugs> |
Component: | Albums-Filters | Assignee: | Digikam Developers <digikam-bugs-null> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | bugs, caulier.gilles, metzpinguin |
Priority: | NOR | ||
Version: | 4.5.0 | ||
Target Milestone: | --- | ||
Platform: | Gentoo Packages | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/digikam/d92e25b6a1b9ee328d0312810241a3ecf2a21b2c | Version Fixed In: | 4.6.0 |
Sentry Crash Report: | |||
Attachments: | Imagefiltersettings.patch |
Description
DrSlony
2014-11-17 15:39:40 UTC
I hope this gets attention before 4.6, as it's quite a basic core functionality that's broken. Created attachment 89810 [details]
Imagefiltersettings.patch
I also have pictures with "gonzo" ;-) This images have a wrong pixel size (==0) in the database.
Changes:
imagefiltersettings.h:
enum TextFilterFields
{
None = 0x00,
ImageName = 0x01,
ImageTitle = 0x02,
ImageComment = 0x04,
TagName = 0x08,
AlbumName = 0x10,
ImageAspectRatio = 0x12, // AlbumName | ImageTitel ??? to -> 0x20
ImagePixelSize = 0x14, // AlbumName | ImageComment ??? to -> 0x40
...
}
imagefiltersettings.cpp:
Only digits are accepted for ImagePixelSize, text would always be zero.
Maik, Thanks a lots to review code and to build patch. This ugly code are probably injected by students this summer, and i don't detect it myself or with static code analyzer (Coverity). I will review you patch before 4.6.0 release. Best Gilles Caulier Git commit d92e25b6a1b9ee328d0312810241a3ecf2a21b2c by Gilles Caulier. Committed on 03/12/2014 at 08:53. Pushed by cgilles into branch 'master'. apply patch #89810 from Maik Qualmann to fix text filtering enum values and rules from FilterSettings about image pixel sizes filtering FIXED-IN: 4.6.0 M +2 -1 NEWS M +10 -7 libs/models/imagefiltersettings.cpp M +8 -8 libs/models/imagefiltersettings.h http://commits.kde.org/digikam/d92e25b6a1b9ee328d0312810241a3ecf2a21b2c |