lib/thinreports/generator/pdf/document/draw_shape.rb in thinreports-0.8.0 vs lib/thinreports/generator/pdf/document/draw_shape.rb in thinreports-0.8.1
- old
+ new
@@ -28,11 +28,12 @@
end
# @param [Thinreports::Core::Shape::Basic::Internal] shape
def draw_shape_image(shape)
x, y, w, h = shape.style.svg_attrs.values_at('x', 'y', 'width', 'height')
- base64image(extract_base64_string(shape.style.svg_attrs['xlink:href']),
- x, y, w, h)
+
+ image_type, image_data = extract_base64_string(shape.style.svg_attrs['xlink:href'])
+ base64image(image_type, image_data, x, y, w, h)
end
# @param [Thinreports::Core::Shape::ImageBlock::Internal] shape
def draw_shape_iblock(shape)
x, y, w, h = shape.box.values_at('x', 'y', 'width', 'height')