Create a table with alphanumeric content and apply one of the predefined table styles. The style is applied but the content with different format is overridden with zeros. For example, A|B|C A|B|C D|E|F -> Gray -> D|0|0 G|H|I G|0|0 The style must not affect the content, and I suggest to assign it to a higher priority.
Repro. Arch Linux 64-bit, KDE Plasma 5 Version: 5.4.0.0.alpha0+ Build ID: 43af3605d7e3b372dcc61f9cbc2cabff09396ed5 CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: kde4; Locale: fi-FI (fi_FI.UTF-8); Calc: group Built on March 10th 2016
It also happens when applying a non-Text format to a single table cell, not just for table styles. Only if the content is a string that could be parsed as some numeric or date content in the format's locale the value is converted accordingly, otherwise changed to 0.
Investigating.
Eike Rathke committed a patch related to this issue. It has been pushed to "master": http://cgit.freedesktop.org/libreoffice/core/commit/?id=acf7e4c0a3dc0cca986bf4d4b7a65bafe7e70abc Resolves: tdf#106322 keep original cell content when assigning number format It will be available in 6.1.0. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
Pending for 6-0 https://gerrit.libreoffice.org/45695
Eike Rathke committed a patch related to this issue. It has been pushed to "libreoffice-6-0": http://cgit.freedesktop.org/libreoffice/core/commit/?id=fd2cdd325cd59eb1f967136170503145b1d75936&h=libreoffice-6-0 Resolves: tdf#106322 keep original cell content when assigning number format It will be available in 6.0.0.1. The patch should be included in the daily builds available at http://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More information about daily builds can be found at: http://wiki.documentfoundation.org/Testing_Daily_Builds Affected users are encouraged to test the fix and report feedback.
*** Bug 113905 has been marked as a duplicate of this bug. ***