[Bug 148233] Adding texture generates black image

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Bug 148233] Adding texture generates black image

Diego Andino
------- 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
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel