Date: prev next · Thread: first prev next last
2011 Archives by date, by thread · List index


Hi,

Here is a really small patch to solve fdo#34872.
This patch is submitted under LGPLv3+/MPL-Licence.

--
Greetings,
Rob Snelders
From 84bb33ac77c0f7967690635d4c41e8ca7d818e44 Mon Sep 17 00:00:00 2001
From: Rob Snelders <programming@ertai.nl>
Date: Sat, 28 May 2011 20:37:08 +0200
Subject: [PATCH] Cross-References-Tab now displays the items correctly. fdo#34872

---
 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


Context


Privacy Policy | Impressum (Legal Info) | Copyright information: Unless otherwise specified, all text and images on this website are licensed under the Creative Commons Attribution-Share Alike 3.0 License. This does not include the source code of LibreOffice, which is licensed under the Mozilla Public License (MPLv2). "LibreOffice" and "The Document Foundation" are registered trademarks of their corresponding registered owners or are in actual use as trademarks in one or more countries. Their respective logos and icons are also subject to international copyright laws. Use thereof is explained in our trademark policy.