diff options
| author | Alan Kessler <[email protected]> | 2015-03-14 14:41:34 -0700 |
|---|---|---|
| committer | Alan Kessler <[email protected]> | 2015-03-14 14:41:34 -0700 |
| commit | fba67564a9ae713dbb122b469ef9d66e9d496075 (patch) | |
| tree | ebd93abb594a4818ee2a7348a9e22e1fb1d4ebaf /lib/axlsx/drawing/pic.rb | |
| parent | f0962f91757ff90a7b614dc7f9d625dde32cbb96 (diff) | |
| download | caxlsx-fba67564a9ae713dbb122b469ef9d66e9d496075.tar.gz caxlsx-fba67564a9ae713dbb122b469ef9d66e9d496075.zip | |
opacity needs to be an integer
Diffstat (limited to 'lib/axlsx/drawing/pic.rb')
| -rw-r--r-- | lib/axlsx/drawing/pic.rb | 2 |
1 files changed, 1 insertions, 1 deletions
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 |
