Bug 155656 - Quattro Pro files show textual & column rendering problems, slanted, and overrunning text
Summary: Quattro Pro files show textual & column rendering problems, slanted, and over...
Status: NEW
Alias: None
Product: Document Liberation Project
Classification: Unclassified
Component: General (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All Windows (All)
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2023-06-03 01:09 UTC by Jonathan
Modified: 2025-05-27 13:46 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Example screen clip showing the problem. (148.80 KB, image/jpeg)
2023-06-03 01:11 UTC, Jonathan
Details
Another example screen clip (121.05 KB, image/jpeg)
2023-06-03 01:13 UTC, Jonathan
Details
Quattro Pro native qpw file which when opened with Calc, shows rendering distortions & column width issues in Calc (10.50 KB, application/x-ole-storage)
2023-06-03 01:15 UTC, Jonathan
Details
Another example Quattro Pro native file showing the problem (10.50 KB, application/x-ole-storage)
2023-06-03 01:19 UTC, Jonathan
Details
Several Quattro Pro files showing the problem when opened with Calc (70.73 KB, application/x-zip-compressed)
2023-06-03 01:20 UTC, Jonathan
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Jonathan 2023-06-03 01:09:46 UTC
Description:
Quattro Pro opened qpw files have rendering problems, slanted, and overrunning text. Have several Quattro Pro spreadsheet files from 2006, qpw extension. Opened several in the regularly-installed LibreOffice Calc version 7.5.3.2 (x86_64, Windows), and some in the standalone LibreOfficePortable_7.5.3_MultilingualStandard.paf.exe version. Rendering problems with text. Slanted text from column D onwards. Cells not the right width in slanted area. Print rendering shows similar distortions (selecting to print, and actual printing on paper shows it too). FORMATTING PRINTING UI

Steps to Reproduce:
1. Open a Quattro Pro qpw file using Calc. 
2. Notice how all text beyond column C is actually slanted upwards. 
3. Notice how the column widths don't look correct ether.
4. Select to print.
5. See how the print preview has similar slanting.
6. Print onto paper. 
7. Acted printed on paper version has similar textual slanting and wrong column widths.  

Actual Results:
Slanted text (slanting upwards from the horizontal) on most text to the right of column C. Slanding is shown during direct sheet editing, and print preview, and printing. Column wides look too small for the parts of the sheet where the text is slanted.

Expected Results:
A normal looking sheet.


Reproducible: Always


User Profile Reset: Yes

Additional Info:
https://gerrit.libreoffice.org/gitweb?p=core.git;a=log;h=9f56dff12ba03b9acd7730a5a481eea045e468f3
Comment 1 Jonathan 2023-06-03 01:11:47 UTC
Created attachment 187682 [details]
Example screen clip showing the problem.
Comment 2 Jonathan 2023-06-03 01:13:12 UTC
Created attachment 187683 [details]
Another example screen clip
Comment 3 Jonathan 2023-06-03 01:15:34 UTC
Created attachment 187684 [details]
Quattro Pro native qpw file which when opened with Calc, shows rendering distortions & column width issues in Calc
Comment 4 Jonathan 2023-06-03 01:19:29 UTC
Created attachment 187685 [details]
Another example Quattro Pro native file showing the problem
Comment 5 Jonathan 2023-06-03 01:20:17 UTC
Created attachment 187686 [details]
Several Quattro Pro files showing the problem when opened with Calc
Comment 6 Buovjaga 2023-08-11 15:02:57 UTC
Confirmed. Let's change product as Quattro Pro is handled by libwps of Document Liberation Project.

Arch Linux 64-bit, X11
Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 5af44a176d2a738dd7523713202aeee27c5578b6
CPU threads: 8; OS: Linux 6.4; UI render: default; VCL: kf5 (cairo+xcb)
Locale: fi-FI (fi_FI.UTF-8); UI: en-US
Calc: threaded
Built on 11 August 2023
Comment 7 Julien Nabet 2025-05-24 09:06:19 UTC
On pc Debian x86-64 with master sources updated today, I could reproduce this.

Laurent: thought you might be interested in this one.
Comment 8 osnola 2025-05-27 13:46:35 UTC
Thank you for these files. 
They were created with a version of Quattro Pro (for which I didn't have any files), the size of the cell styles is 31 bytes, whereas until now I've only had files with 30 bytes (the oldest) or 36 bytes (the new ones). So I'm going to add some new code to handle them.

Notes:
- if the new files seem to have a simple version number, 12, 13 ... 19. For the old ones, it's more complicated: I've found another number: 528 oldest files ( 30 bytes ), 233 these files (31 bytes). I'll use the latter number as a basis and add a heuristic to guess the field size when I don't have any information (and when something seems bad).
- concerning the weird display, with the problem of reading styles, a 3° rotation was returned; I'll look later at why the rendering is weird for such rotation, maybe a field to be added by libodfgen when it detects a rotation?