From e7efb42a278b202807280e6b3586d7cdab6f64af Mon Sep 17 00:00:00 2001 From: rubidium Date: Sat, 26 Dec 2009 09:01:28 +0000 Subject: (svn r18637) -Fix [FS#3428]: check whether the content list is empty before trying to draw it --- src/network/network_content_gui.cpp | 3 +++ 1 file changed, 3 insertions(+) (limited to 'src/network') diff --git a/src/network/network_content_gui.cpp b/src/network/network_content_gui.cpp index 7d3c223db..b179e2091 100644 --- a/src/network/network_content_gui.cpp +++ b/src/network/network_content_gui.cpp @@ -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(NCLWW_CHECKBOX); const NWidgetBase *nwi_name = this->GetWidget(NCLWW_NAME); const NWidgetBase *nwi_type = this->GetWidget(NCLWW_TYPE); -- cgit v1.2.3-54-g00ecf