diff options
author | Ashod Nakashian <ashod.nakashian@collabora.co.uk> | 2018-10-02 05:20:38 -0400 |
---|---|---|
committer | Ashod Nakashian <ashnakash@gmail.com> | 2019-12-26 04:34:15 +0100 |
commit | 412eaa9d66157e1da71580a245e1693143e6de34 (patch) | |
tree | 9c7ac866646b811730bb1a756b0de08dde8bf5ed /sw/inc | |
parent | cdc3145021bf873f07105d2daef35c9feb446477 (diff) |
sw: paragraph-sign: validate current SwTextNode directly
When invoking undo, it turns out that the cursor position
is updated after the text modification, which triggers the
paragraph signature validation. Relying on the cursor
position, then, results in the wrong (previous) paragraph
to be validated (if the undo is in a different paragraph).
Since we have the correct SwTextNode when it's modified
(due to undo or otherwise), there is no reason why
we shouldn't use it and try to deduce it from the cursor.
Change-Id: I4c3283d59738988dcc1c592a9f3ef2c818ce675d
Reviewed-on: https://gerrit.libreoffice.org/63004
Tested-by: Jenkins
Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
(cherry picked from commit 25446d1c7d021ba99201f36b04d59c29c85b7733)
Reviewed-on: https://gerrit.libreoffice.org/c/core/+/85805
Tested-by: Jenkins CollaboraOffice <jenkinscollaboraoffice@gmail.com>
Diffstat (limited to 'sw/inc')
-rw-r--r-- | sw/inc/editsh.hxx | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/sw/inc/editsh.hxx b/sw/inc/editsh.hxx index a29313d6e181..74323492d538 100644 --- a/sw/inc/editsh.hxx +++ b/sw/inc/editsh.hxx @@ -366,7 +366,10 @@ public: /// Sign the paragraph at the cursor. void SignParagraph(); - /// Validate current paragraph signatures, if any, at the cursor start. + /// Validate the paragraph signatures, if any, of the current text node. + void ValidateParagraphSignatures(SwTextNode* pNode, bool updateDontRemove); + + /// Validate the current paragraph signatures, if any, at the cursor start. void ValidateCurrentParagraphSignatures(bool updateDontRemove); /// Validate all paragraph signatures. |