More debugging on this stupid error
parent
91ba48f80b
commit
84fa97a4d1
|
|
@ -165,17 +165,19 @@ module Squib
|
||||||
# before_show = cc.matrix.to_a
|
# before_show = cc.matrix.to_a
|
||||||
m = cc.matrix.to_a || [1,0,0,1,0,0]
|
m = cc.matrix.to_a || [1,0,0,1,0,0]
|
||||||
cc.show_pango_layout(layout)
|
cc.show_pango_layout(layout)
|
||||||
cc.matrix = Cairo::Matrix.new(m[0],m[1],m[2],m[3],m[4],m[5])
|
|
||||||
begin
|
begin
|
||||||
embed_draws.each { |ed| ed[:draw].call(self, ed[:x], ed[:y] + vertical_start) }
|
cc.matrix = Cairo::Matrix.new(m[0],m[1],m[2],m[3],m[4],m[5])
|
||||||
rescue Exception => e
|
rescue Exception => e
|
||||||
|
cc.matrix = Cairo::Matrix.new(1, 0, 0, 1, 0, 0)
|
||||||
puts "====EXCEPTION!===="
|
puts "====EXCEPTION!===="
|
||||||
|
puts "Matrix: #{m}"
|
||||||
# puts "Initial matrix: #{initial_matrix}"
|
# puts "Initial matrix: #{initial_matrix}"
|
||||||
# puts "Before show matrix: #{before_show}"
|
# puts "Before show matrix: #{before_show}"
|
||||||
# puts "Current matrix: #{cc.matrix.to_a}"
|
# puts "Current matrix: #{cc.matrix.to_a}"
|
||||||
puts e
|
puts e
|
||||||
puts "=================="
|
puts "=================="
|
||||||
end
|
end
|
||||||
|
embed_draws.each { |ed| ed[:draw].call(self, ed[:x], ed[:y] + vertical_start) }
|
||||||
draw_text_hint(cc, x, y, layout, hint, angle)
|
draw_text_hint(cc, x, y, layout, hint, angle)
|
||||||
extents = { width: layout.extents[1].width / Pango::SCALE,
|
extents = { width: layout.extents[1].width / Pango::SCALE,
|
||||||
height: layout.extents[1].height / Pango::SCALE }
|
height: layout.extents[1].height / Pango::SCALE }
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue