summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorDan Allen <dan.j.allen@gmail.com>2022-05-17 13:20:05 -0600
committerDan Allen <dan.j.allen@gmail.com>2022-05-17 13:20:05 -0600
commit7ad2e8bbd0074422337b9fef0943844b4bc1ed3c (patch)
treeacfbd8031ee56bbf4fe70fe694f67e84e38102e3 /lib
parent2687b3d38f075320f453caf32414bce2d886b6f8 (diff)
don't apply border on block images to logo image on title page
Diffstat (limited to 'lib')
-rw-r--r--lib/asciidoctor/pdf/converter.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/asciidoctor/pdf/converter.rb b/lib/asciidoctor/pdf/converter.rb
index e92c53c8..dff23fb9 100644
--- a/lib/asciidoctor/pdf/converter.rb
+++ b/lib/asciidoctor/pdf/converter.rb
@@ -1736,7 +1736,7 @@ module Asciidoctor
svg_obj.document.warnings.each do |img_warning|
log :warn, %(problem encountered in image: #{image_path}; #{img_warning})
end unless scratch?
- draw_image_border image_cursor, rendered_w, rendered_h, alignment unless node.role? && (node.has_role? 'noborder')
+ draw_image_border image_cursor, rendered_w, rendered_h, alignment unless pinned || (node.role? && (node.has_role? 'noborder'))
if (link = node.attr 'link')
add_link_to_image link, { width: rendered_w, height: rendered_h }, position: alignment, y: image_y
end
@@ -1765,7 +1765,7 @@ module Asciidoctor
image_cursor = cursor
# NOTE: specify both width and height to avoid recalculation
embed_image image_obj, image_info, width: rendered_w, height: rendered_h, position: alignment
- draw_image_border image_cursor, rendered_w, rendered_h, alignment unless node.role? && (node.has_role? 'noborder')
+ draw_image_border image_cursor, rendered_w, rendered_h, alignment unless pinned || (node.role? && (node.has_role? 'noborder'))
if (link = node.attr 'link')
add_link_to_image link, { width: rendered_w, height: rendered_h }, position: alignment, y: image_y
end