[PATCH] Cross-References-Tab now displays the items correctly. fdo#34872

Rob Snelders programming at ertai.nl
Sat May 28 11:37:08 PDT 2011


---
 sw/source/core/fields/expfld.cxx |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/sw/source/core/fields/expfld.cxx b/sw/source/core/fields/expfld.cxx
index 07e9bdd..ac02cf1 100644
--- a/sw/source/core/fields/expfld.cxx
+++ b/sw/source/core/fields/expfld.cxx
@@ -609,7 +609,7 @@ sal_uInt16 SwSetExpFieldType::GetSeqFldList( SwSeqFldList& rList )
             pNd->GetNodes().IsDocNodes() )
         {
             _SeqFldLstElem* pNew = new _SeqFldLstElem(
-                    pNd->GetExpandTxt( 0, (*pF->GetTxtFld()->GetStart()) + 1 ),
+                    pNd->GetExpandTxt( 1, (*pF->GetTxtFld()->GetStart()) ),
                     ((SwSetExpField*)pF->GetFld())->GetSeqNumber() );
             rList.InsertSort( pNew );
         }
-- 
1.7.0.4


--------------090300080704060400060608--


More information about the LibreOffice mailing list