Kaydet (Commit) 963ae3e6 authored tarafından Andre Fischer's avatar Andre Fischer

#i119592# Fixed column widths.

Reported by: xiao ting xiao
Patch by: wujinlong@...
Reviewed by: Andre Fischer
üst b35a90bc
...@@ -566,7 +566,7 @@ uno::Reference< text::XTextColumns > SectionPropertyMap::ApplyColumnProperties( ...@@ -566,7 +566,7 @@ uno::Reference< text::XTextColumns > SectionPropertyMap::ApplyColumnProperties(
uno::Reference< beans::XPropertySet > xColumnPropSet( xColumns, uno::UNO_QUERY_THROW ); uno::Reference< beans::XPropertySet > xColumnPropSet( xColumns, uno::UNO_QUERY_THROW );
if( !m_bEvenlySpaced && if( !m_bEvenlySpaced &&
(sal_Int32(m_aColWidth.size()) == (m_nColumnCount + 1 )) && (sal_Int32(m_aColWidth.size()) == (m_nColumnCount + 1 )) &&
(sal_Int32(m_aColDistance.size()) == m_nColumnCount)) ((sal_Int32(m_aColDistance.size()) == m_nColumnCount) || (sal_Int32(m_aColDistance.size()) == m_nColumnCount + 1)) )
{ {
//the column width in word is an absolute value, in OOo it's relative //the column width in word is an absolute value, in OOo it's relative
//the distances are both absolute //the distances are both absolute
......
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