Permalink
Browse files

Update OCR/Rotation.ml

  • Loading branch information...
1 parent e44561e commit 49b3e561173d9bfce6908b83ed1a0f0664fe82e9 @dezyal dezyal committed Oct 17, 2012
Showing with 2 additions and 2 deletions.
  1. +2 −2 OCR/Rotation.ml
View
@@ -17,8 +17,8 @@ let rotate mtx w h a =
and new_y = int_of_float(
(float)(x)*.sin(a) +. (float)y*.cos(a)) in
print_int new_x;print_string "/";print_int new_y;print_newline();
- if (new_x > -1) then
- new_mtx.(new_x).(new_y) <- (*mtx.(x).(y)*)0
+ if not(out_of_bounds new_mtx new_w new_h new_x new_y) then
+ new_mtx.(new_x).(new_y) <- 0
done
done;
new_mtx

0 comments on commit 49b3e56

Please sign in to comment.