https://bugs.documentfoundation.org/show_bug.cgi?id=147199

--- Comment #4 from Attila Bakos (NISZ) <[email protected]> ---
Yes, I have an idea about the real problem:
>From that commit the text of the group shapes in textframes attached to the
shapes like simple shapes.
As-char anchoring (like these shapes anchored) is not implemented in the
master, only in gerrit, here: https://gerrit.libreoffice.org/c/core/+/129627
That can cause crash.
But, that fix can be not enough because there is a problem in the writer core,
at the content operation manager so the copy of the textframes will have issues
(floating tables, textboxes etc what uses swxtextframe all affected) because
the frame format of the textbox unable to survive the content operation manager
operation. Before i tried to debug it, and i found the problem in
https://opengrok.libreoffice.org/xref/core/sw/source/core/doc/DocumentContentOperationsManager.cxx?r=70ac13ee#3768
but there i lost... There can be seen a SwTextBoxHelper::SavedLink
aOldTextBoxes; line where the textframes saved in case of simple shapes for
later usage when the fly copying finished (if you comment it that also will
have issues too). But for group textboxes this is not so easy, because in case
of simple shapes the shape texbox pair 1:1, but in case of group shapes this is
1:N, and each textboxes identified by the sdrobject what its belongs to.
However during this content operation, the sdrs will be deleted and recreated,
so the textboxes lost their connection. That prevent proper copying of group
textboxes in case of ctrl+drag, ctrl+c, undoing, etc. I think this cause that
issue too where nested floating table conversion causes exception, now these
tables imported as simple tables with wrong position. So i think this is a so
complex problem, not a simple regression. Thanks to this issue i have to put a
condition in the above mentioned commit, where i disabled group textboxes (WPG)
in tables, see:
https://opengrok.libreoffice.org/xref/core/writerfilter/source/ooxml/OOXMLFastContextHandler.cxx?r=4a38ca40#1712
But i also hope this will be fixed one day too :)

-- 
You are receiving this mail because:
You are the assignee for the bug.

Reply via email to