Fix bug in horizontal step histograms
Merge pull request #2846 from neggert/hist_step_horiz_bugfix

Fix bug in horizontal step histograms (#2830)