sw/qa/extras/layout/data/forcepoint100.html |binary
 sw/qa/extras/layout/layout.cxx              |    6 ++++++
 sw/source/core/layout/tabfrm.cxx            |    7 +++++++
 3 files changed, 13 insertions(+)

New commits:
commit f628a7dbae3f74eb1c0823f0fac79ee64f5a4952
Author:     Caolán McNamara <caol...@redhat.com>
AuthorDate: Sat Apr 2 20:28:15 2022 +0100
Commit:     Caolán McNamara <caol...@redhat.com>
CommitDate: Sat Apr 2 22:43:16 2022 +0200

    forcepoint#100 drop SwBorderAttrAccess to allow cache entry to be removed
    
    for SwBorderAttr which gets deleted during this call
    
    Change-Id: Ie52aab7e5933d76b0c055389798104e4d93f39e9
    Reviewed-on: https://gerrit.libreoffice.org/c/core/+/132460
    Tested-by: Jenkins
    Reviewed-by: Caolán McNamara <caol...@redhat.com>

diff --git a/sw/qa/extras/layout/data/forcepoint100.html 
b/sw/qa/extras/layout/data/forcepoint100.html
new file mode 100644
index 000000000000..6e9b83a6c95e
Binary files /dev/null and b/sw/qa/extras/layout/data/forcepoint100.html differ
diff --git a/sw/qa/extras/layout/layout.cxx b/sw/qa/extras/layout/layout.cxx
index 39b0b48876f6..02185383cc32 100644
--- a/sw/qa/extras/layout/layout.cxx
+++ b/sw/qa/extras/layout/layout.cxx
@@ -2536,6 +2536,12 @@ CPPUNIT_TEST_FIXTURE(SwLayoutWriter, 
testTdf147485Forcepoint)
     createSwDoc(DATA_DIRECTORY, "tdf147485-forcepoint.doc");
 }
 
+//just care it doesn't crash/assert
+CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testForcepoint100)
+{
+    createSwWebDoc(DATA_DIRECTORY, "forcepoint100.html");
+}
+
 CPPUNIT_TEST_FIXTURE(SwLayoutWriter, testTdf118058)
 {
     SwDoc* pDoc = createSwDoc(DATA_DIRECTORY, "tdf118058.fodt");
diff --git a/sw/source/core/layout/tabfrm.cxx b/sw/source/core/layout/tabfrm.cxx
index 210d69582992..8825280cd628 100644
--- a/sw/source/core/layout/tabfrm.cxx
+++ b/sw/source/core/layout/tabfrm.cxx
@@ -2170,7 +2170,14 @@ void SwTabFrame::MakeAll(vcl::RenderContext* 
pRenderContext)
                         setFramePrintAreaValid(false);
                         Format( getRootFrame()->GetCurrShell()->GetOut(), 
pAttrs );
                     }
+
+                    oAccess.reset();
+
                     lcl_RecalcTable( *this, nullptr, aNotify );
+
+                    oAccess.emplace(SwFrame::GetCache(), this);
+                    pAttrs = oAccess->Get();
+
                     m_bLowersFormatted = true;
                     if ( bKeep && KEEPTAB )
                     {

Reply via email to