Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

BUG: check for null id

Temporary fix for the BrainAtlas scene view restore bug 
http://na-mic.org/Mantis/view.php?id=2557

Issue #2557



git-svn-id: http://svn.slicer.org/Slicer4/trunk@21843 3bd1e089-480b-0410-8dfb-8563597acbee
  • Loading branch information...
commit 3c75c782d2dc6815899151ba8010a6309c7cdd00 1 parent 39d967e
naucoin authored
Showing with 1 addition and 1 deletion.
  1. +1 −1  Libs/MRML/Widgets/qMRMLSortFilterProxyModel.cxx
View
2  Libs/MRML/Widgets/qMRMLSortFilterProxyModel.cxx
@@ -190,7 +190,7 @@ ::filterAcceptsNode(vtkMRMLNode* node)const
{
Q_D(const qMRMLSortFilterProxyModel);
qMRMLSceneModel* sceneModel = qobject_cast<qMRMLSceneModel*>(this->sourceModel());
- if (!node)
+ if (!node || !node->GetID())
{
return Accept;
}
Please sign in to comment.
Something went wrong with that request. Please try again.