From: martyntaylor <mtaylor(a)redhat.com>
---
lib/scruffy/graph.rb | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/lib/scruffy/graph.rb b/lib/scruffy/graph.rb
index 66cf2c6..9803b42 100644
--- a/lib/scruffy/graph.rb
+++ b/lib/scruffy/graph.rb
@@ -136,7 +136,7 @@ module Scruffy
options[:theme] ||= theme
options[:value_formatter] ||= value_formatter
options[:point_markers] ||= point_markers
- options[:size] ||= (options[:width] ? [options[:width],
(options.delete(:width) * 0.6).to_i] : [600, 360])
+ options[:size] ||= [options[:width] ? options[:width] : 600,
options[:height] ? options[:height] : options[:width] ? options[:width] * 0.6 : 360]
options[:title] ||= title
options[:layers] ||= layers
options[:min_value] ||= bottom_value(:padded)
--
1.7.1.1