Skip to content
Snippets Groups Projects
Commit 3b78dd88 authored by Aaron Cuevas Lopez's avatar Aaron Cuevas Lopez
Browse files

Merge branch 'master' of github.com:open-ephys/GUI

parents c6580789 60960160
No related branches found
No related tags found
No related merge requests found
......@@ -728,8 +728,12 @@ void ProcessorGraph::removeProcessor(GenericProcessor* processor)
//Look for the next source node. If none is found, set the sourceid to 0
for (int i = 0; i < getNumNodes() && newId == 0; i++)
{
GenericProcessor* p = static_cast<GenericProcessor*>(getNode(i)->getProcessor());
if (p->isSource() && p->generatesTimestamps())
// Michael Borisov: here, for some reason (bug?) not all processors are of type GenericProcessor
// so we need to do a dynamic cast and check its results
// Otherwise the Release build crashes, and the Debug build fails runtime checks
GenericProcessor* p = dynamic_cast<GenericProcessor*>(getNode(i)->getProcessor());
//GenericProcessor* p = static_cast<GenericProcessor*>(getNode(i)->getProcessor());
if (p && p->isSource() && p->generatesTimestamps())
{
newId = p->nodeId;
}
......
......@@ -459,6 +459,7 @@ void EditorViewport::refreshEditors()
}
}
// BUG: variable is used without being initialized
if (tooLong && editorArray.size() > 0)
rightButton->setActive(true);
else
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment