summaryrefslogtreecommitdiff
path: root/sw
diff options
context:
space:
mode:
authorAshod Nakashian <ashod.nakashian@collabora.co.uk>2017-08-25 20:48:30 -0400
committerAshod Nakashian <ashnakash@gmail.com>2017-08-28 03:55:31 +0200
commit3daf54cb807b1841335d0da935c17149f9d9873f (patch)
tree59477dc7c9d15c386e5e5f90d2c45ea5ecc84f47 /sw
parentaf694659763de9a787e018df5ba4debd4976cd03 (diff)
sw: validate paragraph signatures on load
Change-Id: I5ce2587d15c3f0d47cbc0f06e96246cf4dd984cb Reviewed-on: https://gerrit.libreoffice.org/41595 Tested-by: Jenkins <ci@libreoffice.org> Reviewed-by: Ashod Nakashian <ashnakash@gmail.com>
Diffstat (limited to 'sw')
-rw-r--r--sw/source/core/edit/edws.cxx4
1 files changed, 4 insertions, 0 deletions
diff --git a/sw/source/core/edit/edws.cxx b/sw/source/core/edit/edws.cxx
index 4eb1ece5d0aa..13a7452f10cf 100644
--- a/sw/source/core/edit/edws.cxx
+++ b/sw/source/core/edit/edws.cxx
@@ -50,6 +50,10 @@ SwEditShell::SwEditShell( SwDoc& rDoc, vcl::Window *pWindow, const SwViewOption
{
GetDoc()->GetIDocumentUndoRedo().DoUndo(true);
}
+
+ // Update the paragraph signatures.
+ // Since this ctor is called only on creating/loading the doc, we validate once only.
+ ValidateParagraphSignatures(true);
}
SwEditShell::~SwEditShell() // USED