[Libreoffice-bugs] [Bug 131025] Writer document with tables lost data in cells (apparently) replacing with 0

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Mon Mar 2 11:47:03 UTC 2020


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

--- Comment #7 from Mike Kaganski <mikekaganski at hotmail.com> ---
The problem is when a cell has a structure like this:

> <table:table-cell table:style-name="Table1.A1" office:value-type="float" office:value="0">
>     <text:p text:style-name="P1">Some Text</text:p>
> </table:table-cell>

In this case, the value of the cell is 0, but the contents is "Some Text"
textual string.

When import filter calls SwTableBox::ActualiseValueBox(), this sees that the
value 0 formatted using the number format gives a string different from "Some
Text", and replaces it.

Questions are:
1. Why it doesn't happen if using Standard number format?
2. What does standard say about such cases?
3. How should Writer tell if normalizing should or should not happen: say, in a
document using "default" language; in case when a cell contains a formatted
numeric text, using, e.g., en-US format, and the document is opened in Russia,
the new formatted text would also be different, but in this case the change is
legitimate.

-- 
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/20200302/b8047b03/attachment.htm>


More information about the Libreoffice-bugs mailing list