sw/source/core/edit/edfcol.cxx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-)
New commits: commit 71ef88ece19ca202080cffd888f36d43f83556e7 Author: Ashod Nakashian <ashod.nakash...@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 <c...@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnak...@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) _______________________________________________ Libreoffice-commits mailing list libreoffice-comm...@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/libreoffice-commits