ONLYOFFICE / DesktopEditors

An office suite that combines text, spreadsheet and presentation editors allowing to create, view and edit local documents
https://www.onlyoffice.com
Other
2.76k stars 318 forks source link

Tables pasted from speadsheet to document have incorrect colors #1280

Closed KayJay7 closed 1 year ago

KayJay7 commented 1 year ago

This issue is unique.

Operating System

Linux (RPM package)

Version information

7.3.3.50 (flatpak)

Expected Behavior

When a table is copied and pasted from a spreadsheet to a document, it should maintain its text colors. The colors should not only be visible, but also be visible to other applications and printed documents.

Actual Behavior

When a table is copied and pasted from a spreadsheet to a document, it shows correctly in the editor, but trying to print to pdf produces entirely black text on said table.

Opening the same file from a different app (libre office writer) doesn't show the colors, just like the print. Opening the original spreadsheet from a different app (libre office calc) shows the colors correctly, it's an issue only on copy-pasted tables.

Applying a style directly from the document editor doesn't cause this issue, the table is colored correctly.

Manually recoloring the table in the document fixes the issue, but it's tedious. That was the whole point of copy-paste

Reproduction Steps

  1. Write a table in a spreadsheet
  2. Apply colors to some fields of the table
  3. Copy paste the table in a document
  4. Print to pdf

Additional information

It's actually the flatpak version of desktopeditors, not the rpm one. There is no option for flatpak in the menu.

You should add the flatpak option

KirillovIlya commented 1 year ago

Hello, thank you for your report.

This issue was found by our team this week. And we have already fixed it, in version 7.4.0 everything should be fine.

Here is the link with the fix https://github.com/ONLYOFFICE/sdkjs/commit/4ef263c208d9730c2b16af3c8bbfef9b68781397