https://issues.apache.org/ooo/show_bug.cgi?id=119592

--- Comment #7 from [email protected] ---
Hi Andre,

Sorry for late response. 

I did some debug today, and found that 

1) if there is 2 columns, 
m_nColumnCount = 1
m_aColDistance.size() = 2

2) if there is n (n>2) columns,
m_nColumnCount = n -1 
m_aColDistance.size() = n - 1

So the original logic is correct if columns number > 2. While this fix is to
handle the special case for 2 columns.

So we need these 2 conditions, and they are OR relationship in logic. The first
one is for columns > 2, and the second is specific for columns = 2.

((sal_Int32(m_aColDistance.size()) == m_nColumnCount) ||
(sal_Int32(m_aColDistance.size()) == m_nColumnCount + 1)) )

Thanks!

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to