[Libreoffice-bugs] [Bug 108867] Assertion failed when adding/removing/ adding text box to a shape
bugzilla-daemon at bugs.documentfoundation.org
bugzilla-daemon at bugs.documentfoundation.org
Fri Jun 30 20:57:48 UTC 2017
https://bugs.documentfoundation.org/show_bug.cgi?id=108867
Julien Nabet <serval2412 at yahoo.fr> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |mstahl at redhat.com
--- Comment #3 from Julien Nabet <serval2412 at yahoo.fr> ---
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.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20170630/8a2fff5f/attachment.html>
More information about the Libreoffice-bugs
mailing list