lib/wx/shapes/auto_layout.rb in wxruby3-shapes-0.9.0.pre.beta.3 vs lib/wx/shapes/auto_layout.rb in wxruby3-shapes-0.9.5
- old
+ new
@@ -143,11 +143,11 @@
node.move_to(min_x, y)
rct_bb = node.get_bounding_box
curr_max_width = rct_bb.width if rct_bb.width > curr_max_width
- lst_neighbours = node.get_neighbours(Shape, Shape::CONNECTMODE::STARTING)
+ lst_neighbours = node.get_neighbours(LineShape, Shape::CONNECTMODE::STARTING)
if lst_neighbours.empty?
min_x += curr_max_width + @h_space
else
lst_neighbours.each do |nbs|
@@ -202,10 +202,10 @@
node.move_to(x, min_y)
rct_bb = node.get_bounding_box
curr_max_height = rct_bb.height if rct_bb.height > curr_max_height
- lst_neighbours = node.get_neighbours(Shape, Shape::CONNECTMODE::STARTING)
+ lst_neighbours = node.get_neighbours(LineShape, Shape::CONNECTMODE::STARTING)
if lst_neighbours.empty?
min_y += curr_max_height + @v_space
else
lst_neighbours.each do |nbs|