How are you calling TableCell::draw ???
May be theres some prob with the painter reference u are passing