[Libreoffice-commits] core.git: sw/source
Ashod Nakashian
ashod.nakashian at collabora.co.uk
Tue Sep 26 11:55:19 UTC 2017
sw/source/core/edit/edfcol.cxx | 3 ++-
1 file changed, 2 insertions(+), 1 deletion(-)
New commits:
commit e7a2877782067b9381e522723bcbd119195b32ea
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date: Thu Sep 21 23:00:52 2017 -0400
sw: move paragraph signature field to the end
This is both more readable (esp. at a glance) and
for undoing.
Change-Id: I817699b4eed15e05b0578d0f08ac451633b1d0dd
Reviewed-on: https://gerrit.libreoffice.org/42734
Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>
Tested-by: Ashod Nakashian <ashnakash at gmail.com>
diff --git a/sw/source/core/edit/edfcol.cxx b/sw/source/core/edit/edfcol.cxx
index c9c0b1c77ebf..ba4baaee73cd 100644
--- a/sw/source/core/edit/edfcol.cxx
+++ b/sw/source/core/edit/edfcol.cxx
@@ -1082,8 +1082,9 @@ void SwEditShell::SignParagraph(SwPaM* pPaM)
GetDoc()->GetIDocumentUndoRedo().StartUndo(SwUndoId::PARA_SIGN_ADD, nullptr);
+ // Add the signature at the end.
uno::Reference<text::XTextContent> xContent(xField, uno::UNO_QUERY);
- xContent->attach(xParent->getAnchor()->getStart());
+ xContent->attach(xParent->getAnchor()->getEnd());
uno::Reference<rdf::XResource> xRes(xField, uno::UNO_QUERY);
const OUString name = "loext:signature:signature";
More information about the Libreoffice-commits
mailing list