From eb710efc686e81348fd3e3e1f895bc5beaf1e73d Mon Sep 17 00:00:00 2001 From: Fabien Freling Date: Wed, 6 Aug 2014 23:12:44 +0200 Subject: [PATCH] Deactivate last line / column. This causes the check_00() and check_90() to fail. --- rotation.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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) {