[Digikam-devel] [Bug 148233] Adding texture generates black image

Diego Andino diegoandino at gmail.com
Mon Sep 10 18:30:06 BST 2007


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=148233         




------- Additional Comments From diegoandino gmail com  2007-09-10 19:30 -------
Well i've looked into the code and the problem seems to be here:

On imageeffect_texture.cpp:285 and imageeffect_border.cpp:647 :

    KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") +
                                     "digikamimageplugins/data");

The textures and pattern files are installed by default on DATAROOTDIR/digikam/data so they cannot be found hence the resulting image gets corrupted because apparently theres no code for checking the paths are correct and the files are found.

i've changed the above lines to:

    KGlobal::dirs()->addResourceType(pattern.ascii(), KGlobal::dirs()->kde_default("data") +
                                     "digikam/data");

and now it works fine here.

Diego.

ps : sorry my english sucks



More information about the Digikam-devel mailing list