diff --git a/core/utilities/imageeditor/tools/enhance/hotpixels/weights.cpp b/core/utilities/imageeditor/tools/enhance/hotpixels/weights.cpp index 43a975144e..e39f58fa7e 100644 --- a/core/utilities/imageeditor/tools/enhance/hotpixels/weights.cpp +++ b/core/utilities/imageeditor/tools/enhance/hotpixels/weights.cpp @@ -127,12 +127,12 @@ void Weights::calculateWeights() { for (x = -iPolynomeOrder ; x < iWidth + iPolynomeOrder ; ++x) { - if (((x < 0) && (y < 0) && (-x - y < iPolynomeOrder + 2)) || - ((x < 0) && (y >= iHeight) && (-x + y - iHeight < iPolynomeOrder + 1)) || - ((x >= iWidth) && (y < 0) && (x - y - iWidth < iPolynomeOrder + 1)) || - ((x >= iWidth) && (y >= iHeight) && (x + y - iWidth - iHeight < iPolynomeOrder)) || - ((x < 0) && (y >= 0) && (y < iHeight) || ((x >= iWidth) && (y >= 0) && (y < iHeight))) || - ((y < 0) && (x >= 0) && (x < iWidth ) || ((y >= iHeight) && (x >= 0) && (x < iWidth)))) + if ((x < 0 && y < 0 && (-x - y < iPolynomeOrder + 2)) || + (x < 0 && y >= iHeight && (-x + y - iHeight < iPolynomeOrder + 1)) || + (x >= iWidth && y < 0 && ( x - y - iWidth < iPolynomeOrder + 1)) || + (x >= iWidth && y >= iHeight && ( x + y - iWidth - iHeight < iPolynomeOrder)) || + (x < 0 && y >= 0 && y < iHeight) || (x >= iWidth && y >= 0 && y < iHeight) || + (y < 0 && x >= 0 && x < iWidth ) || (y >= iHeight && x >= 0 && x < iWidth)) { QPoint position(x,y); mPositions.append(position); @@ -146,13 +146,13 @@ void Weights::calculateWeights() for (y = -mPolynomeOrder ; y < 0 ; ++y) { - QPoint position(0,y); + QPoint position(0, y); mPositions.append(position); } for (y = (int) height() ; y < (int) height() + (int) mPolynomeOrder ; ++y) { - QPoint position(0,y); + QPoint position(0, y); mPositions.append(position); } }