lib/rabbit/renderer/kernel.rb in rabbit-2.2.0 vs lib/rabbit/renderer/kernel.rb in rabbit-2.2.1
- old
+ new
@@ -158,10 +158,10 @@
def draw_flag_layout(layout, x, y, pole_width, flag_width,
text_height, flag_height)
base_x = x + pole_width
layout.width = flag_width * Pango::SCALE
- layout.alignment = Pango::Layout::ALIGN_CENTER
+ layout.alignment = Pango::Alignment::CENTER
base_y = y
if text_height < flag_height
base_y += (flag_height - text_height) / 2
end
draw_layout(layout, base_x, base_y)