diff options
| author | Dan Allen <dan.j.allen@gmail.com> | 2023-04-14 23:56:46 -0600 |
|---|---|---|
| committer | Dan Allen <dan.j.allen@gmail.com> | 2023-04-15 01:16:58 -0600 |
| commit | dc358439667cf7491a1440f5af0e135af27fb921 (patch) | |
| tree | 6f6ed527db1356b94a5f2f1a6a273856cbc0cff9 /lib | |
| parent | c2e320d33786e2e69186d3b26f0520fe81cbba4c (diff) | |
remove outdated comment when processing image icon for admonition [no ci]
Diffstat (limited to 'lib')
| -rw-r--r-- | lib/asciidoctor/pdf/converter.rb | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb index c10636d1..d48ab392 100644 --- a/lib/asciidoctor/pdf/converter.rb +++ b/lib/asciidoctor/pdf/converter.rb @@ -979,8 +979,6 @@ module Asciidoctor begin image_obj, image_info = ::File.open(icon_path, 'rb') {|fd| build_image_object fd } icon_aspect_ratio = image_info.width.fdiv image_info.height - # NOTE: don't scale image up if smaller than label_width - #icon_width = [(to_pt image_info.width, :px), icon_width].min if (icon_height = icon_width * (1 / icon_aspect_ratio)) > label_height icon_width *= label_height / icon_height end |
