From fba67564a9ae713dbb122b469ef9d66e9d496075 Mon Sep 17 00:00:00 2001 From: Alan Kessler Date: Sat, 14 Mar 2015 14:41:34 -0700 Subject: opacity needs to be an integer --- lib/axlsx/drawing/pic.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/axlsx/drawing/pic.rb b/lib/axlsx/drawing/pic.rb index 385229e7..a8a09493 100644 --- a/lib/axlsx/drawing/pic.rb +++ b/lib/axlsx/drawing/pic.rb @@ -23,7 +23,7 @@ module Axlsx start_at(*options[:start_at]) if options[:start_at] yield self if block_given? @picture_locking = PictureLocking.new(options) - @opacity = options[:opacity] * 100000 if options[:opacity] #accepts value beween 0..1 + @opacity = (options[:opacity] * 100000).round if options[:opacity] #accepts value beween 0..1 end # allowed file extenstions -- cgit v1.2.3