int ht = shape->get_frame(i)->get_height();
Shape_frame *frame = shape->get_frame(i); int ht =  frame ? frame->get_height() : -1;
static int Get_max_height	(	Shape *shape	)	{	int cnt = shape->get_num_frames();	int maxh = 0;	for (int i = 0; i < cnt; i++)		{		int ht = shape->get_frame(i)->get_height();		if (ht > maxh)			maxh = ht;		}	return maxh;	}