cppcheck: further fixes

This commit is contained in:
Ingo Weyrich
2019-08-08 19:10:29 +02:00
parent 4bf4b818c0
commit 8744f8f826
6 changed files with 26 additions and 41 deletions

View File

@@ -422,9 +422,7 @@ bool Gradient::button1Pressed(int modifierKey)
double diagonal = sqrt(double(imW) * double(imW) + double(imH) * double(imH));
// trick to get the correct angle (clockwise/counter-clockwise)
int p = centerPos.y;
centerPos.y = currPos.y;
currPos.y = p;
std::swap(centerPos.y, currPos.y);
draggedPoint = currPos - centerPos;
// compute the projected value of the dragged point