From 71ef88ece19ca202080cffd888f36d43f83556e7 Mon Sep 17 00:00:00 2001 From: Ashod Nakashian Date: Thu, 31 Aug 2017 21:50:20 -0400 Subject: sw: move paragraph signatures to the beginning Change-Id: Ic9fb1f74ff19d3e9ad455483b221181f25f09653 Reviewed-on: https://gerrit.libreoffice.org/41790 Tested-by: Jenkins Reviewed-by: Ashod Nakashian --- sw/source/core/edit/edfcol.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sw') 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 xField(xMultiServiceFactory->createInstance("com.sun.star.text.textfield.MetadataField"), uno::UNO_QUERY); uno::Reference xContent(xField, uno::UNO_QUERY); - xContent->attach(xParent->getAnchor()->getEnd()); + xContent->attach(xParent->getAnchor()->getStart()); uno::Reference xRes(xField, uno::UNO_QUERY); const OUString name = "loext:signature:signature"; @@ -735,7 +735,7 @@ void SwEditShell::SignParagraph(SwPaM* pPaM) const std::pair res = lcl_MakeParagraphSignatureFieldText(xModel, xField, utf8Text); uno::Reference xText(xField, uno::UNO_QUERY); - xText->setString(res.second); + xText->setString(res.second + " "); } void SwEditShell::ValidateParagraphSignatures(bool updateDontRemove) -- cgit