# HG changeset patch # User Chris Cannam # Date 1493978598 -3600 # Node ID 0c0fd90320e7a7aeecf6a60f906b0f61ef56f6a1 # Parent 6c47605ebd75fbf21f7b17ff46eb3fb0a1d9d01c Avoid getting horribly bogged down if a feature contains a NaN diff -r 6c47605ebd75 -r 0c0fd90320e7 src/app/waveform/waveform.component.ts --- a/src/app/waveform/waveform.component.ts Fri May 05 09:48:02 2017 +0100 +++ b/src/app/waveform/waveform.component.ts Fri May 05 11:03:18 2017 +0100 @@ -648,6 +648,12 @@ min = 0; max = 1; } + console.log("adding line layer: min = " + min + ", max = " + max); + if (min !== min || max !== max) { + console.log("WARNING: min or max is NaN"); + min = 0; + max = 1; + } const lineLayer = new wavesUI.helpers.LineLayer(plotData, { color: colour, height: height,