lib/axlsx/drawing/graphic_frame.rb in axlsx-1.0.6 vs lib/axlsx/drawing/graphic_frame.rb in axlsx-1.0.7
- old
+ new
@@ -20,9 +20,10 @@
# Creates a new GraphicFrame object
# @param [TwoCellAnchor] anchor
# @param [Class] chart_type
def initialize(anchor, chart_type, options)
+ DataTypeValidator.validate "Drawing.chart_type", Chart, chart_type
@anchor = anchor
@chart = chart_type.new(self, options)
end
def rId