[Libreoffice-commits] core.git: Branch 'libreoffice-4-0' - sw/source

László Németh nemeth at numbertext.org
Wed Apr 24 01:30:45 PDT 2013


 sw/source/core/txtnode/atrftn.cxx |   10 +++++++++-
 1 file changed, 9 insertions(+), 1 deletion(-)

New commits:
commit 3263ce60c9ccede366ee2e24667ca10a6f823659
Author: László Németh <nemeth at numbertext.org>
Date:   Tue Apr 16 15:40:24 2013 +0200

    fdo#40102 show full footnote text in index tooltip
    
    Change-Id: I35acdaf4f62df7a1d375aed663c270e78ea70779
    Reviewed-on: https://gerrit.libreoffice.org/3590
    Reviewed-by: Fridrich Strba <fridrich at documentfoundation.org>
    Tested-by: Fridrich Strba <fridrich at documentfoundation.org>

diff --git a/sw/source/core/txtnode/atrftn.cxx b/sw/source/core/txtnode/atrftn.cxx
index 6814ec4..6540e97 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;
+            }
+        }
     }
 }
 


More information about the Libreoffice-commits mailing list