[Libreoffice-commits] core.git: sw/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Fri Sep 1 17:52:29 UTC 2017


 sw/source/core/edit/edfcol.cxx |    4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

New commits:
commit 71ef88ece19ca202080cffd888f36d43f83556e7
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Thu Aug 31 21:50:20 2017 -0400

    sw: move paragraph signatures to the beginning
    
    Change-Id: Ic9fb1f74ff19d3e9ad455483b221181f25f09653
    Reviewed-on: https://gerrit.libreoffice.org/41790
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index 5dd18baaedf3..9f3389b394b8 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -727,7 +727,7 @@ void SwEditShell::SignParagraph(SwPaM* pPaM)
     uno::Reference<css::text::XTextField> xField(xMultiServiceFactory->createInstance("com.sun.star.text.textfield.MetadataField"), uno::UNO_QUERY);
 
     uno::Reference<text::XTextContent> xContent(xField, uno::UNO_QUERY);
-    xContent->attach(xParent->getAnchor()->getEnd());
+    xContent->attach(xParent->getAnchor()->getStart());
 
     uno::Reference<rdf::XResource> xRes(xField, uno::UNO_QUERY);
     const OUString name = "loext:signature:signature";
@@ -735,7 +735,7 @@ void SwEditShell::SignParagraph(SwPaM* pPaM)
 
     const std::pair<bool, OUString> res = lcl_MakeParagraphSignatureFieldText(xModel, xField, utf8Text);
     uno::Reference<css::text::XTextRange> xText(xField, uno::UNO_QUERY);
-    xText->setString(res.second);
+    xText->setString(res.second + " ");
 }
 
 void SwEditShell::ValidateParagraphSignatures(bool updateDontRemove)


More information about the Libreoffice-commits mailing list