https://bugs.documentfoundation.org/show_bug.cgi?id=108867
Julien Nabet <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
--- Comment #3 from Julien Nabet <[email protected]> ---
After having added trace, we indeed go in "if" block quoted in my previous
comment but putting "m_rDoc.DelFrameFormat( pFormat );" outside else block
doesn't fix anything.
I tested this:
diff --git a/sw/source/core/doc/textboxhelper.cxx
b/sw/source/core/doc/textboxhelper.cxx
index 9a88ba9dea4e..c782128f1faa 100644
--- a/sw/source/core/doc/textboxhelper.cxx
+++ b/sw/source/core/doc/textboxhelper.cxx
@@ -123,7 +123,10 @@ void SwTextBoxHelper::destroy(SwFrameFormat* pShape)
// Delete the associated TextFrame.
if (pFormat)
+ {
pShape->GetDoc()->getIDocumentLayoutAccess().DelLayoutFormat(pFormat);
+ pShape->SetOtherTextBoxFormat(nullptr);
+ }
}
}
I don't reproduce the crash but perhaps just hiding it.
Michael: any thoughts?
--
You are receiving this mail because:
You are the assignee for the bug._______________________________________________
Libreoffice-bugs mailing list
[email protected]
https://lists.freedesktop.org/mailman/listinfo/libreoffice-bugs