Source code is if (p1.x() < 0 || p2.y() < 0 || p1.x() < 0 || p2.y() < 0) { return 0.0; } Maybe something like if (p1.x() < 0 || p1.y() < 0 || p2.x() < 0 || p2.y() < 0) { return 0.0; } was intended.
Git commit 5ac520779fce2238610e07936ca8ecaa7802a177 by Gilles Caulier. Committed on 18/03/2014 at 12:47. Pushed by cgilles into branch 'master'. fix comparison arguments in head of calculateAngle fonction FIXED-IN: 4.0.0 M +22 -24 libs/dimg/filters/transform/freerotationfilter.cpp M +5 -5 libs/dimg/filters/transform/freerotationfilter.h http://commits.kde.org/digikam/5ac520779fce2238610e07936ca8ecaa7802a177