Import 2017-06-07 23:51:09: master a3f241ec

Author Committer Branch Timestamp Parent
jcfr jcfr master 2016-06-01 23:12:38 master e1467b2a
Affected Issues 0003445: Slicer crash when restoring a scene view
0004199: Creating a ruler then entering Annotations module causes a crash
Changeset

BUG: Remove invalid assert while populating the scene. Fixes 0003445, 0004199

This commit fixes a regression introduced in r25049 (COMP: qMRMLSceneModel:
Fix -Woverloaded-virtual and add comment.)

The assert was checking whether the index of the current node
matches the row count. However, while inserting nodes, the
logic adds a parent node if there isn't one. This insertion of
parent node increments the RowCache size. Next time the assert
was encountered, it would fail.

From: Sankhesh Jhaveri <sankhesh.jhaveri@kitware.com>

git-svn-id: http://svn.slicer.org/Slicer4/trunk@25143 3bd1e089-480b-0410-8dfb-8563597acbee

mod - Libs/MRML/Widgets/qMRMLSceneModel.cxx Diff File