Skip to content

Commit

Permalink
fix compile warning
Browse files Browse the repository at this point in the history
  • Loading branch information
mqualmann committed May 21, 2018
1 parent 179e33f commit 84862e0
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions core/utilities/imageeditor/tools/enhance/hotpixels/weights.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand All @@ -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);
}
}
Expand Down

0 comments on commit 84862e0

Please sign in to comment.