lib/axlsx/drawing/graphic_frame.rb in axlsx-1.1.6 vs lib/axlsx/drawing/graphic_frame.rb in axlsx-1.1.7

- old
+ new

@@ -31,12 +31,12 @@ # Serializes the object # @param [String] str # @return [String] def to_xml_string(str = '') # macro attribute should be optional! - str << '<xdr:graphicFrame macro="">' + str << '<xdr:graphicFrame>' str << '<xdr:nvGraphicFramePr>' - str << '<xdr:cNvPr id="2" name="' << chart.title.text << '"/>' + str << '<xdr:cNvPr id="' << @anchor.drawing.index.to_s << '" name="' << 'item_' << @anchor.drawing.index.to_s << '"/>' str << '<xdr:cNvGraphicFramePr/>' str << '</xdr:nvGraphicFramePr>' str << '<xdr:xfrm>' str << '<a:off x="0" y="0"/>' str << '<a:ext cx="0" cy="0"/>'