summaryrefslogtreecommitdiff
path: root/vcl/source/edit/texteng.cxx
diff options
context:
space:
mode:
Diffstat (limited to 'vcl/source/edit/texteng.cxx')
-rw-r--r--vcl/source/edit/texteng.cxx27
1 files changed, 2 insertions, 25 deletions
diff --git a/vcl/source/edit/texteng.cxx b/vcl/source/edit/texteng.cxx
index 188a3769f34e..769e2927d2ed 100644
--- a/vcl/source/edit/texteng.cxx
+++ b/vcl/source/edit/texteng.cxx
@@ -2495,31 +2495,8 @@ bool TextEngine::Write( SvStream& rOutput, const TextSelection* pSel, bool bHTML
}
else
{
- sal_Int32 nTmpStart = nStartPos;
- sal_Int32 nTmpEnd;
- do
- {
- const TextCharAttrib* pAttr = pNode->GetCharAttribs().FindNextAttrib( TEXTATTR_HYPERLINK, nTmpStart, nEndPos );
- nTmpEnd = pAttr ? pAttr->GetStart() : nEndPos;
-
- // Text before Attribute
- aText.append( pNode->GetText().copy( nTmpStart, nTmpEnd-nTmpStart ) );
-
- if ( pAttr )
- {
- nTmpEnd = std::min( pAttr->GetEnd(), nEndPos );
-
- // e.g. <A HREF="http://www.mopo.de/">Morgenpost</A>
- aText.append( "<A HREF=\"" );
- aText.append( static_cast<const TextAttribHyperLink&>( pAttr->GetAttr() ).GetURL() );
- aText.append( "\">" );
- nTmpStart = pAttr->GetStart();
- aText.append( pNode->GetText().copy( nTmpStart, nTmpEnd-nTmpStart ) );
- aText.append( "</A>" );
-
- nTmpStart = pAttr->GetEnd();
- }
- } while ( nTmpEnd < nEndPos );
+ // Text before Attribute
+ aText.append( pNode->GetText().copy( nStartPos, nEndPos-nStartPos ) );
}
aText.append( "</P>" );