diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2017-08-31 21:50:20 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2017-09-01 19:52:09 +0200 |
commit | 71ef88ece19ca202080cffd888f36d43f83556e7 (patch) | |
tree | 0753ab3317a1a9d6d682cd867510419529f53fa3 /sw/source | |
parent | c497c4ca4d7068fb9bdd965bbace7d5216f8fd59 (diff) |
sw: move paragraph signatures to the beginning
Change-Id: Ic9fb1f74ff19d3e9ad455483b221181f25f09653
Reviewed-on: https://gerrit.libreoffice.org/41790
Tested-by: Jenkins <ci@libreoffice.org>
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sw/source')
-rw-r--r-- | sw/source/core/edit/edfcol.cxx | 4 |
1 files changed, 2 insertions, 2 deletions
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) |