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