debugging missing layout

This commit is contained in:
Torsten Ruger
2015-05-31 11:07:49 +03:00
parent deaa062062
commit aaa206fbca
11 changed files with 92 additions and 14 deletions

View File

@ -43,17 +43,20 @@ module Parfait
# private
def set_layout(layout)
if( internal_object_get(LAYOUT_INDEX) )
#if( was = internal_object_get(LAYOUT_INDEX) )
#TODO find out wat these objects are
# puts "Layout was set for #{self.class}"
return
end
#puts "Layout was set for #{self.class}"
#puts "#{self}" if self.class == Parfait::Word
# Space.object_space.check was
# return
#end
raise "Nil layout" unless layout
internal_object_set(LAYOUT_INDEX , layout)
end
def get_layout()
l = internal_object_get(LAYOUT_INDEX)
raise "No layout #{self.class}" unless l
raise "No layout #{self.class}:#{self.to_s} #{self.object_id}" unless l
return l
end