Bug 168135 - FILEOPEN PPTX: shape shows up as two boxes (large and small) instead of one
Summary: FILEOPEN PPTX: shape shows up as two boxes (large and small) instead of one
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Impress (show other bugs)
Version:
(earliest affected)
6.4 all versions
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: PPTX-Textbox
  Show dependency treegraph
 
Reported: 2025-08-27 11:48 UTC by Gerald Pfeifer
Modified: 2025-10-13 16:54 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Sample slide (PPTX) (2.80 MB, application/vnd.ms-powerpoint)
2025-08-27 11:48 UTC, Gerald Pfeifer
Details
Visual comparison: PowerPoint (left) - Impress (right) (676.50 KB, image/png)
2025-08-27 11:49 UTC, Gerald Pfeifer
Details
Example file from LO 5.0 with subscript / superscript and background color (10.80 KB, application/vnd.oasis.opendocument.presentation)
2025-10-13 16:54 UTC, Gabor Kelemen (Collabora)
Details
How it looked in 5.0 - still the same in current master (62.87 KB, image/png)
2025-10-13 16:54 UTC, Gabor Kelemen (Collabora)
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Gerald Pfeifer 2025-08-27 11:48:59 UTC
Created attachment 202544 [details]
Sample slide (PPTX)

Comparing the sample document in PowerPoint each entry shows as one
large colored box, whereas in Impress it's a large box and a small one.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: 248ff6232da4f7efa5b4365434d413ce653267d9
CPU threads: 12; OS: Linux 6.16; UI render: default; VCL: gtk3
Locale: en-US (en_US.UTF-8); UI: en-US

...and all the way back to 6.4 at least.
Comment 1 Gerald Pfeifer 2025-08-27 11:49:34 UTC
Created attachment 202545 [details]
Visual comparison: PowerPoint (left) - Impress (right)
Comment 2 Gerald Pfeifer 2025-08-27 11:52:25 UTC
Google also shows it like PowerPoint does.
Comment 3 BogdanB 2025-08-27 12:37:35 UTC
Confirm with
Version: 25.2.5.2 (X86_64) / LibreOffice Community
Build ID: 03d19516eb2e1dd5d4ccd751a0d6f35f35e08022
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: ro-RO (en_US); UI: en-US
Calc: threaded
Comment 4 Gabor Kelemen (Collabora) 2025-10-13 16:53:37 UTC
The "number%" are just text with character background color and the % having superscript formatting, in a textbox.

Seems like this is not a PPTX issue: ever since it is possible to set background color to text in textbox in Impress (LO 5.0), the background color is painted to cover only the height of the smaller subscript / superscript characters and not the full height of the normal characters. Let's focus on this here.

There are two more problems:
- in master, bug 168835 shows that there is now a lot more superscript characters than needed
- painting looks like two separate boxes with an unpainted vertical line between them, but this is only with certain zoom levels (for me: 100% OK, 90%, 80% NOK, 75% OK, 65% NOK, 60% OK, 55% NOK, 50% OK, 110% 120% 130% NOK, 140% 150% OK), so some sort of rendering glitch. Let's hope this can be made unseen with painting all characters to the same height level as normal characters, this is scary.

Version: 26.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: d60ff8c8bd4e3ebf8f84f53448ead3c838332ea9
CPU threads: 14; OS: Windows 10 X86_64 (build 19045); UI render: Skia/Raster; VCL: win
Locale: de-DE (hu_HU); UI: en-US
Calc: threaded
Comment 5 Gabor Kelemen (Collabora) 2025-10-13 16:54:07 UTC
Created attachment 203309 [details]
Example file from LO 5.0 with subscript / superscript and background color
Comment 6 Gabor Kelemen (Collabora) 2025-10-13 16:54:50 UTC
Created attachment 203310 [details]
How it looked in 5.0 - still the same in current master