diff options
author | László Németh <nemeth@numbertext.org> | 2013-04-16 15:40:24 +0200 |
---|---|---|
committer | Fridrich Strba <fridrich@documentfoundation.org> | 2013-04-24 08:30:26 +0000 |
commit | 3263ce60c9ccede366ee2e24667ca10a6f823659 (patch) | |
tree | cab95d0341a64f130e216a252304bac24de95cb7 | |
parent | 377e95a33f77dcb7e76c4afc98f9d61465363d75 (diff) |
fdo#40102 show full footnote text in index tooltip
Change-Id: I35acdaf4f62df7a1d375aed663c270e78ea70779
Reviewed-on: https://gerrit.libreoffice.org/3590
Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org>
Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
-rw-r--r-- | sw/source/core/txtnode/atrftn.cxx | 10 |
1 files changed, 9 insertions, 1 deletions
diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx index 6814ec452da9..6540e97e8ae7 100644 --- a/sw/source/core/txtnode/atrftn.cxx +++ b/sw/source/core/txtnode/atrftn.cxx @@ -172,8 +172,16 @@ void SwFmtFtn::GetFtnText( XubString& rStr ) const if( !pCNd ) pCNd = aIdx.GetNodes().GoNext( &aIdx ); - if( pCNd->IsTxtNode() ) + if( pCNd->IsTxtNode() ) { rStr = ((SwTxtNode*)pCNd)->GetExpandTxt(); + + ++aIdx; + while ( !aIdx.GetNode().IsEndNode() ) { + if ( aIdx.GetNode().IsTxtNode() ) + rStr += OUString(" ") + ((SwTxtNode*)(aIdx.GetNode().GetTxtNode()))->GetExpandTxt(); + ++aIdx; + } + } } } |