diff options
Diffstat (limited to 'sw/source/filter')
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.cxx | 7 | ||||
-rw-r--r-- | sw/source/filter/ww8/rtfattributeoutput.hxx | 2 |
2 files changed, 7 insertions, 2 deletions
diff --git a/sw/source/filter/ww8/rtfattributeoutput.cxx b/sw/source/filter/ww8/rtfattributeoutput.cxx index 9380cca7375c..b7bbf222ddd4 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.cxx +++ b/sw/source/filter/ww8/rtfattributeoutput.cxx @@ -383,6 +383,7 @@ void RtfAttributeOutput::StartRun( const SwRedlineData* pRedlineData, bool bSing { SAL_INFO("sw.rtf", OSL_THIS_FUNC); + m_bInRun = true; m_bSingleEmptyRun = bSingleEmptyRun; if (!m_bSingleEmptyRun) m_aRun->append('{'); @@ -398,8 +399,9 @@ void RtfAttributeOutput::EndRun() SAL_INFO("sw.rtf", OSL_THIS_FUNC); m_aRun->append(m_rExport.sNewLine); m_aRun.appendAndClear(m_aRunText); - if (!m_bSingleEmptyRun) + if (!m_bSingleEmptyRun && m_bInRun) m_aRun->append('}'); + m_bInRun = false; } void RtfAttributeOutput::StartRunProperties() @@ -3029,7 +3031,8 @@ RtfAttributeOutput::RtfAttributeOutput( RtfExport &rExport ) m_bHadFieldResult( false ), m_bTableRowEnded( false ), m_aCells(), - m_bSingleEmptyRun(false) + m_bSingleEmptyRun(false), + m_bInRun(false) { SAL_INFO("sw.rtf", OSL_THIS_FUNC); } diff --git a/sw/source/filter/ww8/rtfattributeoutput.hxx b/sw/source/filter/ww8/rtfattributeoutput.hxx index 3957de502b43..a17bcca76f1c 100644 --- a/sw/source/filter/ww8/rtfattributeoutput.hxx +++ b/sw/source/filter/ww8/rtfattributeoutput.hxx @@ -544,6 +544,8 @@ private: /// If we're in a paragraph that has a single empty run only. bool m_bSingleEmptyRun; + + bool m_bInRun; public: RtfAttributeOutput( RtfExport &rExport ); |