Fix some coverity issues

This commit is contained in:
heckflosse
2017-06-14 17:02:33 +02:00
parent 31d1f2f52b
commit c4f27b2c13
12 changed files with 16 additions and 15 deletions

View File

@@ -690,7 +690,7 @@ void ImProcFunctions::transformLuminanceOnly (Imagefloat* original, Imagefloat*
#pragma omp parallel for schedule(dynamic,16) if (multiThread)
for (int y = 0; y < transformed->getHeight(); y++) {
double vig_y_d = (double) (y + cy) - vig_h2 ;
double vig_y_d = applyVignetting ? (double) (y + cy) - vig_h2 : 0.0;
for (int x = 0; x < transformed->getWidth(); x++) {
double factor = 1.0;