From 86083605cb3c0dcdb8a345c8d4fd571b7e9b886e Mon Sep 17 00:00:00 2001 From: Domingo Alvarez Duarte Date: Wed, 26 Oct 2016 19:31:47 -0200 Subject: [PATCH] Fix wrong variable name --- lib/pdf/extract/spatial.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/pdf/extract/spatial.rb b/lib/pdf/extract/spatial.rb index 6f0eca4..c5da921 100644 --- a/lib/pdf/extract/spatial.rb +++ b/lib/pdf/extract/spatial.rb @@ -148,7 +148,7 @@ def self.contains? a, b, padding=0 def self.overlap? from, by, a, b a_top = a[from] + a[by] - b_top = b[rom] + b[by] + b_top = b[from] + b[by] (b_top <= a_top && b_top >= a[from]) || (b[from] >= a[from] && b[from] <= b_top) end