core: fix line returned when clicking on a bar (according to position and filling) (bug #38069)
core: fix typo in comment