Commit ae338efb authored by Guillaume Pasero's avatar Guillaume Pasero

BUG: issue on windows in debug, index() called before m_StackedLayerModel is set

parent 507c6dc2
......@@ -683,7 +683,8 @@ LayerStackItemModel
// qDebug()
// << this << "::index(" << row << "," << column << "," << parent << ")";
assert( m_StackedLayerModel!=NULL );
if (m_StackedLayerModel == NULL)
return QModelIndex();
// qDebug()
// << "index:" << row << "," << column << "," << m_StackedLayerModel->At( row );
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment