summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiklos Vajna <vmiklos@suse.cz>2012-09-14 14:54:42 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-09-14 15:38:42 +0200
commit61c94cbe2cbbbcaa1e44edecc4add60eb6d7937d (patch)
tree83c2ab1e1e1899c4a8e3ae82f3cda4750b375325
parent5d4bd2f97128adecc5b11699e98c934be3c3a462 (diff)
n#778140 as the comment says, it's 100 twips
Change-Id: If2e0d2f4805cd04bec0dd7983ec544b9922ef796
-rw-r--r--writerfilter/source/dmapper/DomainMapper.cxx6
1 files changed, 3 insertions, 3 deletions
diff --git a/writerfilter/source/dmapper/DomainMapper.cxx b/writerfilter/source/dmapper/DomainMapper.cxx
index ba6e659e7fef..dc042765df59 100644
--- a/writerfilter/source/dmapper/DomainMapper.cxx
+++ b/writerfilter/source/dmapper/DomainMapper.cxx
@@ -1154,15 +1154,15 @@ void DomainMapper::lcl_attribute(Id nName, Value & val)
uno::makeAny( aLocale ) );
}
break;
-#define AUTO_PARA_SPACING sal_Int32(49)
+#define AUTO_PARA_SPACING sal_Int32(100)
case NS_ooxml::LN_CT_Spacing_beforeAutospacing:
//TODO: autospacing depends on some document property (called fDontUseHTMLAutoSpacing in old ww8 filter) 100 or 280 twip
//and should be set to 0 on start of page
- m_pImpl->GetTopContext()->Insert( PROP_PARA_TOP_MARGIN, false, uno::makeAny( AUTO_PARA_SPACING ) );
+ m_pImpl->GetTopContext()->Insert( PROP_PARA_TOP_MARGIN, false, uno::makeAny( ConversionHelper::convertTwipToMM100(AUTO_PARA_SPACING) ) );
break;
case NS_ooxml::LN_CT_Spacing_afterAutospacing:
//TODO: autospacing depends on some document property (called fDontUseHTMLAutoSpacing in old ww8 filter) 100 or 280 twip
- m_pImpl->GetTopContext()->Insert( PROP_PARA_BOTTOM_MARGIN, false, uno::makeAny( AUTO_PARA_SPACING ) );
+ m_pImpl->GetTopContext()->Insert( PROP_PARA_BOTTOM_MARGIN, false, uno::makeAny( ConversionHelper::convertTwipToMM100(AUTO_PARA_SPACING) ) );
break;
case NS_ooxml::LN_CT_SmartTagRun_uri:
case NS_ooxml::LN_CT_SmartTagRun_element: