Commit 7a3302e6 authored by Mathias Goldau's avatar Mathias Goldau
Browse files

[ADD] message while starting fiber display: how many fibs loaded

[FIX] fiberDisplay don't crashes anymoooore on empty fiber dataset display attempt
parent 1568d282
......@@ -96,10 +96,20 @@ void WMFiberDisplay::moduleMain()
}
m_dataset = m_fiberInput->getData();
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->removeChild( m_osgNode.get() );
WKernel::getRunningKernel()->getRoiManager()->addFiberDataset( m_dataset );
create();
infoLog() << "Fiber dataset for display with: " << m_dataset->size() << " fibers loaded.";
if( m_dataset->size() != 0 ) // incase of an empty fiber dataset nothing is to display
{
WKernel::getRunningKernel()->getGraphicsEngine()->getScene()->removeChild( m_osgNode.get() );
WKernel::getRunningKernel()->getRoiManager()->addFiberDataset( m_dataset );
create();
}
else
{
warnLog() << "Nothing to display for an empty fiber dataset";
}
}
}
}
......
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