diff --git a/rotation.cpp b/rotation.cpp index 861e1bb..4916167 100644 --- a/rotation.cpp +++ b/rotation.cpp @@ -620,7 +620,7 @@ Image* rotate(Image const& src, double angle) for (int x = 0; x < core_pixels; ++x, ++buffer_index) { if (src_rotated_point.x < 0 || src_rotated_point.y < 0 - || src_rotated_point.x >= src_qwidth || src_rotated_point.y >= src_qheight) + || src_rotated_point.x >= src_qwidth - q_pos || src_rotated_point.y >= src_qheight - q_pos) { // LOG << "Out-of-bounds point!" << endl; // cout << " x: " << x << endl; @@ -861,7 +861,7 @@ int main(int argc, char* argv[]) return 1; } - bool perform_check = true; + bool perform_check = false; if (perform_check) {