mirror of
https://github.com/qgis/QGIS.git
synced 2025-02-28 00:17:30 -05:00
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:
parent
ccb8700295
commit
f1aa8c717c
@ -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);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user