(svn r18637) -Fix [FS#3428]: check whether the content list is empty before trying to draw it

This commit is contained in:
rubidium 2009-12-26 09:01:28 +00:00
parent 9cefcdab82
commit e7efb42a27

View File

@ -435,6 +435,9 @@ public:
void DrawMatrix(const Rect &r) const
{
/* Is there something to do? */
if (this->content.Length() == 0) return;
const NWidgetBase *nwi_checkbox = this->GetWidget<NWidgetBase>(NCLWW_CHECKBOX);
const NWidgetBase *nwi_name = this->GetWidget<NWidgetBase>(NCLWW_NAME);
const NWidgetBase *nwi_type = this->GetWidget<NWidgetBase>(NCLWW_TYPE);