[Digikam-devel] [patch] noisereduction.cpp

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

[Digikam-devel] [patch] noisereduction.cpp

Peter Heckert
This fixed the crash problem for me.
"bytes" containes the mory size in bytes for one pixel, but number of
colors is needed here.

Peter


Index: noisereduction.cpp
===================================================================
--- noisereduction.cpp (Revision 535100)
+++ noisereduction.cpp (Arbeitskopie)
@@ -253,7 +253,7 @@
             dpix[1] = green2 + dl;
             dpix[0] =  blue2 + dl;
             
-            for (v = 0 ; !m_cancel && (v < bytes) ; v++)
+            for (v = 0 ; !m_cancel && (v < 3) ; v++)
             {
                 float value  = spix[v];
                 float fvalue = dpix[v];

_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel
Reply | Threaded
Open this post in threaded view
|

Re: [Digikam-devel] [patch] noisereduction.cpp

Gilles Caulier-2
Le Vendredi 28 Avril 2006 20:36, Peter Heckert a écrit :
> This fixed the crash problem for me.
> "bytes" containes the mory size in bytes for one pixel, but number of
> colors is needed here.
>
> Peter

Commited. Thanks

Gilles
_______________________________________________
Digikam-devel mailing list
[hidden email]
https://mail.kde.org/mailman/listinfo/digikam-devel