Skip to content

Commit

Permalink
fixed "mNan" id in scroll markers (#1414)
Browse files Browse the repository at this point in the history
  • Loading branch information
LordBaryhobal authored Aug 6, 2022
1 parent ef978c1 commit 568916d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coverage/htmlfiles/coverage_html.js
Original file line number Diff line number Diff line change
Expand Up @@ -553,7 +553,7 @@ coverage.build_scroll_markers = function () {
'p.show_run, p.show_mis, p.show_exc, p.show_exc, p.show_par'
).forEach(element => {
const line_top = Math.floor(element.offsetTop * marker_scale);
const line_number = parseInt(element.id.substr(1));
const line_number = parseInt(element.querySelector(".n a").id.substr(1));

if (line_number === previous_line + 1) {
// If this solid missed block just make previous mark higher.
Expand Down

0 comments on commit 568916d

Please sign in to comment.