Skip to content

Commit

Permalink
Fix NameTree error on already-ordered nodes. Closes #48
Browse files Browse the repository at this point in the history
  • Loading branch information
jlh authored and bradediger committed Oct 24, 2009
1 parent 35cedcc commit 23cafc4
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions lib/prawn/name_tree.rb
Original file line number Diff line number Diff line change
Expand Up @@ -79,6 +79,7 @@ def <<(value)
split! if children.length > limit
else
fit = children.detect { |child| child >= value }
fit = children.last unless fit
fit << value
end

Expand Down

0 comments on commit 23cafc4

Please sign in to comment.