[Libreoffice-commits] core.git: sw/source

Ashod Nakashian ashod.nakashian at collabora.co.uk
Thu Oct 5 12:46:09 UTC 2017


 sw/source/uibase/app/docsh.cxx |    7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

New commits:
commit 09d70a097136719df3f8f08f5cbaa8dae4369279
Author: Ashod Nakashian <ashod.nakashian at collabora.co.uk>
Date:   Mon Oct 2 20:14:42 2017 -0400

    TSCP: remove invalid signatures on saving
    
    Change-Id: Ib2bc309966e802eb584fa3c6e37458b840710e81
    Reviewed-on: https://gerrit.libreoffice.org/43111
    Tested-by: Jenkins <ci at libreoffice.org>
    Reviewed-by: Ashod Nakashian <ashnakash at gmail.com>

diff --git a/sw/source/uibase/app/docsh.cxx b/sw/source/uibase/app/docsh.cxx
index 61ea3efbc2d9..ad2e6dbf4ac0 100644
--- a/sw/source/uibase/app/docsh.cxx
+++ b/sw/source/uibase/app/docsh.cxx
@@ -467,10 +467,15 @@ bool SwDocShell::SaveAs( SfxMedium& rMedium )
             m_xDoc->SetContainsMSVBasic( false );
         }
 
-        // End TableBox Edit!
         if (m_pWrtShell)
+        {
+            // End TableBox Edit!
             m_pWrtShell->EndAllTableBoxEdit();
 
+            // Remove invalid signatures.
+            m_pWrtShell->ValidateParagraphSignatures(false);
+        }
+
         // Remember and preserve Modified-Flag without calling the Link
         // (for OLE; after Statement from MM)
         const bool bIsModified = m_xDoc->getIDocumentState().IsModified();


More information about the Libreoffice-commits mailing list