https://bugs.documentfoundation.org/show_bug.cgi?id=102479
Michael Stahl <[email protected]> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |[email protected]
Summary|FILESAVE: a DOCX document |FILESAVE: a DOCX document
|cannot be saved as ODT |with a shape/frame that
| |contains nothing but a
| |table cannot be saved as
| |ODT
Whiteboard|interoperability |interoperability odf
--- Comment #3 from Michael Stahl <[email protected]> ---
SwXTextFrame::createTextCursor() throws because it's on node 34:
[ 34] 0x429e920 StartNode ,
[ 35] 0x429eb90 GrfNode ,
[ 36] 0x4352240 EndNode ,
clearly that is not a text frame?
ah the format actually points to node 8 but then the cursor runs over into the
next frame since there is nothing but a table in here:
[ 8] 0x44e5400 StartNode ,
[ 9] 0x45f1ef0 TableNode ,
[ 10] 0x43950f0 StartNode ,
[ 11] 0x44e4970 TextNode "",
[ 12] 0x44d5130 TextNode "Especificación Requerimientos del Cliente",
[ 13] 0x44d5a50 TextNode "",
[ 14] 0x45f3240 TextNode "",
[ 15] 0x45f39b0 TextNode "Migración SREM desde mysql a sql server ",
[ 16] 0x45f3ac0 TextNode " ",
[ 17] 0x45f2be0 TextNode "",
[ 18] 0x45f1940 TextNode "",
[ 19] 0x45f1f80 EndNode ,
[ 20] 0x462cca0 StartNode ,
[ 21] 0x45f34e0 TextNode "\001",
[ 22] 0x4361910 TextNode "",
[ 23] 0x42a6330 TextNode " ",
[ 24] 0x43b2b10 TextNode "",
[ 25] 0x45f1fc0 EndNode ,
[ 26] 0x45f3420 StartNode ,
[ 27] 0x45f60f0 TextNode "Este documento, incluyendo la información contenida
en él, es restringido, confidencial y de propiedad de Netweb Ingenieria de
Sistemas Ltda. (Serviweb), y no puede ser utilizado o reproducido, para ningún
propósito, sin el consentimiento escrito de Serviweb.",
[ 28] 0x45f3470 EndNode ,
[ 29] 0x45f6470 StartNode ,
[ 30] 0x4310fa0 TextNode "Preparado por: Serviweb.",
[ 31] 0x45f64c0 EndNode ,
[ 32] 0x42907d0 EndNode ,
[ 33] 0x44e5450 EndNode ,
... the problem is essentially that for a text frame with only a table
SwXTextFrame::createTextCursor() explicitly throws an exception, in
contrast to SwXBodyText::createTextCursor() which would just start on the
table node in this case.
apparently the createTextCursor call in the ODF export happens only in the
special case where the shape SwXShape has an aggregated SwXTextFrame;
a plain SwXTextFrame with just a table can be exported.
it's not obvious to me why we need to throw an exception if there is only a
table - this was added with:
commit 65bd995e095460faccfc10cf5b1d97809ae7ec8a
Author: Oliver Specht <[email protected]>
AuthorDate: Thu Nov 15 14:48:44 2001 +0000
#94705# take care for tables and sections in headers/footers/text frames
commit ddf10fd1f85f24ae6a6e587a0fe11b4812ee66f3
Author: Oliver Specht <[email protected]>
AuthorDate: Wed Nov 8 13:56:39 2000 +0000
#80121# createTextCursor in frames: skip tables
... i've gone ahead based on the assumption that the exception
is intentional and submitted https://gerrit.libreoffice.org/#/c/31218/
--
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