fix hierarchy display

This commit is contained in:
Eyck Jentzsch 2021-02-17 21:14:28 +00:00
parent 156abe63cd
commit 799f083a74
1 changed files with 5 additions and 6 deletions

View File

@ -226,14 +226,13 @@ public class WaveformDb extends HierNode implements IWaveformDb, PropertyChangeL
break; break;
} }
} }
if (childNode != null) { if (childNode == null) {
node = childNode;
break;
}
HierNode newNode = new HierNode(name, node); HierNode newNode = new HierNode(name, node);
node.addChild(newNode); node.addChild(newNode);
node = newNode; node = newNode;
} else {
node = childNode;
}
} }
node.addChild(waveform); node.addChild(waveform);
waveform.setParent(node); waveform.setParent(node);