diff --git a/benchexec/tablegenerator/template.html b/benchexec/tablegenerator/template.html index 49984113d..63a3b07fc 100644 --- a/benchexec/tablegenerator/template.html +++ b/benchexec/tablegenerator/template.html @@ -1394,14 +1394,21 @@ .text(graphData.showCorrectOnly ? 'Switch to All Results' : 'Switch to Correct Results Only'); } -function isValidStatisticsColumn(columnIndex) { +function isValidStatisticsColumn(columnIndex, allowStatus) { var firstRow = $('#dataTable').find('> tbody > tr:visible')[0]; var firstColumnEntry = firstRow.cells[dataColumnsOffset + columnIndex]; var columnClasses = firstColumnEntry.classList; - return $(columnTitleCells[columnIndex]).is(':visible') - && (columnClasses.contains('status') || columnClasses.contains('main_status') - || columnClasses.contains('measure') || columnClasses.contains('count')); + if (!$(columnTitleCells[columnIndex]).is(':visible')) { + return false; + } + if (columnClasses.contains('measure') || columnClasses.contains('count')) { + return true; + } + if (allowStatus && (columnClasses.contains('status') || columnClasses.contains('main_status'))) { + return true; + } + return false; } function getSelectorForScatter(identifier) { @@ -1412,7 +1419,7 @@ var group = $('', {label:getNameOfTestDirect(runSet)}) .appendTo(select); for (var j = 0; j < runSet.columns.length; j++, columnIndex++) { - if (isValidStatisticsColumn(columnIndex)) { + if (isValidStatisticsColumn(columnIndex, true)) { var column = runSet.columns[j]; var option = $('