Skip to content

Commit

Permalink
fix spec for ruby 2.5 and 2.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kirkkwang committed Oct 18, 2022
1 parent 611a024 commit d1418b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/iiif_manifest/v3/manifest_builder/thumbnail_builder.rb
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ def build_thumbnail
def reduction_ratio
width = display_content.width
height = display_content.height
max_edge = self.max_edge.to_f
max_edge = @max_edge.to_f
return 1 if width <= max_edge && height <= max_edge

long_edge = [height, width].max
Expand Down

0 comments on commit d1418b4

Please sign in to comment.