Fixed NULL dereferencing bug that crashed QGIS when loading projects with layers that are in the overview

git-svn-id: http://svn.osgeo.org/qgis/trunk/qgis@1656 c8812cc2-4d05-0410-92ff-de0c093fc19c
This commit is contained in:
larsl 2004-06-22 09:55:27 +00:00
parent ccb8700295
commit f1aa8c717c

View File

@ -157,7 +157,8 @@ void QgsMapLayer::toggleShowInOverview()
//
//update the legend item
//
((QCheckListItem *) m_legendItem)->setPixmap(0, *(this->legendPixmap()));
if (m_legendItem)
((QCheckListItem *) m_legendItem)->setPixmap(0, *(this->legendPixmap()));
emit showInOverview(ID,mShowInOverview);
}