summaryrefslogtreecommitdiff
path: root/sw/source
diff options
context:
space:
mode:
Diffstat (limited to 'sw/source')
-rw-r--r--sw/source/filter/html/htmlatr.cxx8
1 files changed, 1 insertions, 7 deletions
diff --git a/sw/source/filter/html/htmlatr.cxx b/sw/source/filter/html/htmlatr.cxx
index a7390832ad27..2a09be851359 100644
--- a/sw/source/filter/html/htmlatr.cxx
+++ b/sw/source/filter/html/htmlatr.cxx
@@ -2340,7 +2340,6 @@ Writer& OutHTML_SwTextNode( Writer& rWrt, const SwContentNode& rNode )
{
HTMLOutContext aContext( rHTMLWrt.m_eDestEnc );
- sal_Int32 nPreSplitPos = 0;
for( ; nStrPos < nEnd; nStrPos++ )
{
// output the frames that are anchored to the current position
@@ -2442,10 +2441,7 @@ Writer& OutHTML_SwTextNode( Writer& rWrt, const SwContentNode& rNode )
if( ' ' == c && rHTMLWrt.m_nLastParaToken == HtmlTokenId::NONE )
{
sal_Int32 nLineLen;
- if( rHTMLWrt.m_nLastParaToken != HtmlTokenId::NONE )
- nLineLen = nStrPos - nPreSplitPos;
- else
- nLineLen = rHTMLWrt.GetLineLen();
+ nLineLen = rHTMLWrt.GetLineLen();
sal_Int32 nWordLen = rStr.indexOf( ' ', nStrPos+1 );
if( nWordLen == -1 )
@@ -2458,8 +2454,6 @@ Writer& OutHTML_SwTextNode( Writer& rWrt, const SwContentNode& rNode )
HTMLOutFuncs::FlushToAscii( rWrt.Strm(), aContext );
rHTMLWrt.OutNewLine();
bOutChar = false;
- if( rHTMLWrt.m_nLastParaToken != HtmlTokenId::NONE )
- nPreSplitPos = nStrPos+1;
}
}