Commit 18285eb0 authored by Simon Spannagel's avatar Simon Spannagel
Browse files

Merge branch 'follow_up_387' into 'master'

Follow-up on !387: fix calculation of column width

See merge request !391
parents fe44f6ad 2994c5a4
Pipeline #2194184 passed with stages
in 16 minutes and 12 seconds
......@@ -23,7 +23,7 @@ void Cluster::addPixel(const Pixel* pixel) {
// Take split clusters into account correctly, e.g.
// (1,10),(1,12) should have a row width = 3
m_columnWidth = static_cast<size_t>(1 + m_columnHits.begin()->first - m_columnHits.rbegin()->first);
m_columnWidth = static_cast<size_t>(1 + m_columnHits.rbegin()->first - m_columnHits.begin()->first);
m_rowWidth = static_cast<size_t>(1 + m_rowHits.rbegin()->first - m_rowHits.begin()->first);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment