lib/ctioga2/graphics/elements/primitive.rb in ctioga2-0.4 vs lib/ctioga2/graphics/elements/primitive.rb in ctioga2-0.5

- old
+ new

@@ -20,11 +20,11 @@ require 'shellwords' # This module contains all the classes used by ctioga module CTioga2 - Version::register_svn_info('$Revision: 370 $', '$Date: 2012-12-28 17:40:18 +0100 (Fri, 28 Dec 2012) $') + Version::register_svn_info('$Revision: 391 $', '$Date: 2013-03-14 11:04:36 +0100 (Thu, 14 Mar 2013) $') module Graphics module Elements @@ -229,20 +229,20 @@ styled_primitive("arrow", "arrow", [ 'point', 'point' ], Styles::ArrowStyle, 'arrow') do |t, tail, head, style, options| - style.draw_arrow(t, *tail.to_figure_xy(t), - *head.to_figure_xy(t)) + style.draw_arrow(t, *( tail.to_figure_xy(t) + + head.to_figure_xy(t) )) end styled_primitive("line", "line", [ 'point', 'point' ], Styles::StrokeStyle, 'line' ) do |t, tail, head, style, options| - style.draw_line(t, *(tail.to_figure_xy(t)), - *(head.to_figure_xy(t))) + style.draw_line(t, *( tail.to_figure_xy(t) + + head.to_figure_xy(t) )) end # Here, we need to add deprecated options for backward # compatibility