Commit 2994c5a4 authored by Jens Kroeger's avatar Jens Kroeger
Browse files

Cluster: fix how column width is calculated: colMax - colMin (was inverted)

parent fe44f6ad
......@@ -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