incubator-ooo-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject [Bug 119592] [From Symphony] The left-style columns display with the same width when opening with AOO
Date Wed, 29 Aug 2012 09:13:11 GMT
https://issues.apache.org/ooo/show_bug.cgi?id=119592

--- Comment #7 from wujinlong@gmail.com ---
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.

Mime
View raw message