Fix for latest dep changes

This commit is contained in:
Andy Meneely
2017-05-30 16:19:42 -04:00
parent c6e1c67e5f
commit d94a3e676b
2 changed files with 12 additions and 12 deletions
+1 -1
View File
@@ -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