Fix for latest dep changes
This commit is contained in:
@@ -67,7 +67,7 @@ module Squib
|
||||
Squib.logger.warn 'Both an SVG file and SVG data were specified' unless file.to_s.empty? || svg_args.data.to_s.empty?
|
||||
return if (file.nil? or file.eql? '') and svg_args.data.nil? # nothing specified TODO Move this out to arg validator
|
||||
svg_args.data = File.read(file) if svg_args.data.to_s.empty?
|
||||
svg = RSVG::Handle.new_from_data(svg_args.data)
|
||||
svg = Rsvg::Handle.new_from_data(svg_args.data)
|
||||
box.width = svg.width if box.width == :native
|
||||
box.height = svg.height if box.height == :native
|
||||
box.width = svg.width.to_f * box.height.to_f / svg.height.to_f if box.width == :scale
|
||||
|
||||
Reference in New Issue
Block a user