[Libreoffice-commits] .: Branch 'libreoffice-3-4' - sw/source
Cédric Bosdonnat
cbosdo at kemper.freedesktop.org
Mon May 16 04:52:06 PDT 2011
sw/source/filter/ww8/rtfattributeoutput.cxx | 20 ++++++++++----------
sw/source/filter/ww8/ww8atr.cxx | 4 +++-
2 files changed, 13 insertions(+), 11 deletions(-)
New commits:
commit e03712a9c093663895fc6d7c999d574e948ab8dd
Author: Oliver-Rainer Wittmann <od at openoffice.org>
Date: Mon May 16 13:51:34 2011 +0200
sw34bf06 #i117711# - correct RTF page margin export
Signed-off-by: Cédric Bosdonnat <cedric.bosdonnat.ooo at free.fr>
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx
index c08c704..93412a2 100644
--- a/sw/source/filter/ww8/rtfattributeoutput.cxx
+++ b/sw/source/filter/ww8/rtfattributeoutput.cxx
@@ -2677,24 +2677,24 @@ void RtfAttributeOutput::FormatULSpace( const SvxULSpaceItem& rULSpace )
HdFtDistanceGlue aDistances( *m_rExport.GetCurItemSet() );
+ if( aDistances.dyaTop )
+ {
+ m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGTSXN);
+ m_aSectionBreaks.append((sal_Int32)aDistances.dyaTop);
+ }
if ( aDistances.HasHeader() )
{
- if( aDistances.dyaTop )
- {
- m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGTSXN);
- m_aSectionBreaks.append((sal_Int32)aDistances.dyaTop);
- }
m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_HEADERY);
m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrTop);
}
+ if( aDistances.dyaBottom )
+ {
+ m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGBSXN);
+ m_aSectionBreaks.append((sal_Int32)aDistances.dyaBottom);
+ }
if( aDistances.HasFooter() )
{
- if( aDistances.dyaBottom )
- {
- m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_MARGBSXN);
- m_aSectionBreaks.append((sal_Int32)aDistances.dyaBottom);
- }
m_aSectionBreaks.append(OOO_STRING_SVTOOLS_RTF_FOOTERY);
m_aSectionBreaks.append((sal_Int32)aDistances.dyaHdrBottom);
}
diff --git a/sw/source/filter/ww8/ww8atr.cxx b/sw/source/filter/ww8/ww8atr.cxx
index 901d8fb..63ee393 100644
--- a/sw/source/filter/ww8/ww8atr.cxx
+++ b/sw/source/filter/ww8/ww8atr.cxx
@@ -841,8 +841,10 @@ void MSWordExportBase::OutputFormat( const SwFmt& rFmt, bool bPapFmt, bool bChpF
}
}
break;
+ case RES_FRMFMT:
+ break;
default:
- OSL_ENSURE( !this, "Was wird hier ausgegeben ??? " );
+ OSL_ENSURE( !this, "Which format is exported here?" );
break;
}
More information about the Libreoffice-commits
mailing list