Bug 150758 - FILEOPEN RTF Zero sized shape opens as visible object
Summary: FILEOPEN RTF Zero sized shape opens as visible object
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
5.2.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, bisected
Depends on:
Blocks: RTF-Shapes
  Show dependency treegraph
 
Reported: 2022-09-02 14:36 UTC by Gabor Kelemen (allotropia)
Modified: 2023-01-31 12:39 UTC (History)
0 users

See Also:
Crash report or crash signature:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gabor Kelemen (allotropia) 2022-09-02 14:36:36 UTC
Opening an RTF file containing a 0x0 sized shape object makes it visible.

1, Open attachment 47273 [details]
2, Notice there is a small rectangle of a frame object visible below the paragraph "Attention: dans un même récit" as seen on attachment 179515 [details] which is not there in Word.

Happens in

Version: 7.5.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 3e544b6938ee509a4f6df4c2e2996d71ce072506
CPU threads: 14; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: en-US (hu_HU); UI: en-US
Calc: threaded

Seems to have started to be visible in 5.2 with

https://cgit.freedesktop.org/libreoffice/core/commit/?id=654f6ff28d7a148950b48ed8905d8f13a015a5b5

author	Mike Kaganski <mike.kaganski@collabora.com>	2016-01-09 18:39:26 +1000
committer	Chris Sherlock <chris.sherlock79@gmail.com>	2016-02-14 01:56:42 +0000

tdf#92157: allow both dimensions of a graphic to be 0

Since this was not related strictly to RTF shapes/frames, I'm not setting regression.
Comment 1 Mike Kaganski 2022-09-02 17:04:48 UTC
Note that it wasn't invisible before; it simply didn't get imported. This is obvious in Navigator, where the fourth frame didn't exist before.