More conventional name

dev
Andy Meneely 2014-11-02 18:44:22 -05:00
parent c6e85b0e46
commit 450f914dfc
1 changed files with 2 additions and 2 deletions

View File

@ -64,7 +64,7 @@ module Squib
# :nodoc: # :nodoc:
# @api private # @api private
def valign(cc, layout, x, y, valign) def valign!(cc, layout, x, y, valign)
if layout.height > 0 if layout.height > 0
ink_extents = layout.extents[1] ink_extents = layout.extents[1]
case valign.to_s case valign.to_s
@ -109,7 +109,7 @@ module Squib
layout.justify = justify unless justify.nil? layout.justify = justify unless justify.nil?
layout.spacing = spacing * Pango::SCALE unless spacing.nil? layout.spacing = spacing * Pango::SCALE unless spacing.nil?
cc.update_pango_layout(layout) cc.update_pango_layout(layout)
valign(cc, layout, x, y, valign) valign!(cc, layout, x, y, valign)
cc.update_pango_layout(layout) ; cc.show_pango_layout(layout) cc.update_pango_layout(layout) ; cc.show_pango_layout(layout)
draw_text_hint(cc,x,y,layout,hint,angle) draw_text_hint(cc,x,y,layout,hint,angle)
end end