Bug 146448 - DOCX: A drawing object has a "Remove Textbox" which creates an empty frame (Captionbox/image frame is converted to Drawing object)
Summary: DOCX: A drawing object has a "Remove Textbox" which creates an empty frame (C...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
7.4.0.0 alpha0+
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: filter:docx
Depends on:
Blocks: DOCX-Frames DOCX-Objects
  Show dependency treegraph
 
Reported: 2021-12-28 10:35 UTC by Telesto
Modified: 2024-05-06 13:53 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Example file (678.74 KB, application/vnd.oasis.opendocument.text)
2021-12-28 10:35 UTC, Telesto
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Telesto 2021-12-28 10:35:41 UTC
Description:
A drawing object has a "Remove Textbox" which creates an empty frame (Captionbox/image frame is converted to Drawing object)

Steps to Reproduce:
1. Open the attached file
2. Save as DOCX
3. Select the outer frame & right click. Apply remove textbox

Actual Results:
Frame content gone, but frame still present

Expected Results:
No clue what should happen here, but this doesn't seem right. Maybe 'remove textbox' or filter that out in these cases?


Reproducible: Always


User Profile Reset: No



Additional Info:
Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 9c95415de877af1430ab5b7123e11dedd0ea622c
CPU threads: 4; OS: Windows 6.3 Build 9600; UI render: Skia/Raster; VCL: win
Locale: nl-NL (nl_NL); UI: en-US
Calc: CL
Comment 1 Telesto 2021-12-28 10:35:55 UTC
Created attachment 177167 [details]
Example file
Comment 2 Dieter 2022-01-12 15:56:34 UTC
I'm sorry, but I can't see "Remove Textbox" in context menu and also not in an entry of the menu bar. i couldn't add command to context menu "Text Frame" and if I add it to a toolbar, it is greyed out, if I choose one of the frames.

Telesto, please check, if sample document is correct and if it is, give perhaps some more informations. Thank you.
=> NEEDINFO
Comment 3 Telesto 2022-01-12 17:47:40 UTC
(In reply to Dieter from comment #2)
> Telesto, please check, if sample document is correct and if it is, give
> perhaps some more informations. Thank you.

I forgot a step.. 

1. Open the attached file
2. Save as DOCX
3. File -> Reload 
4. Select the outer frame & right click. Apply remove textbox
Comment 4 QA Administrators 2022-01-13 03:42:33 UTC Comment hidden (obsolete)
Comment 5 Dieter 2022-01-20 20:32:58 UTC
I confirm it with

Version: 7.4.0.0.alpha0+ (x64) / LibreOffice Community
Build ID: 151c56ed547490a99d912524c0e56b5d6d4a1939
CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL
Comment 6 QA Administrators 2024-01-21 03:13:59 UTC Comment hidden (obsolete)
Comment 7 Dieter 2024-05-04 09:41:39 UTC
Still present in

Version: 24.2.3.2 (X86_64) / LibreOffice Community
Build ID: 433d9c2ded56988e8a90e6b2e771ee4e6a5ab2ba
CPU threads: 4; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win
Locale: de-DE (de_DE); UI: en-GB
Calc: CL threaded

But I think main question is about expected result (see comment 0). Is it possible to avoid change to Drawing Object? Don't know who can answer that question.
Comment 8 Telesto 2024-05-04 10:14:41 UTC
(In reply to Dieter from comment #7)
> Is it possible to avoid change to Drawing Object? 

No. It's by design for compatibility reasons with Word. At least the export part. No clue if it's possible to convert it back to Textbox on import time, I guess not

The main request to hide Remove Textbox from context menu, if it's possible to detect what the shape actually represents. A caption frame
Comment 9 Dieter 2024-05-04 10:48:07 UTC
(In reply to Telesto from comment #8)
> The main request to hide Remove Textbox from context menu, if it's possible
> to detect what the shape actually represents. A caption frame

So let's ask design-team
Comment 10 Heiko Tietze 2024-05-06 13:53:32 UTC
Undo/redo deletes the whole object, which could be expected considering that deleting the caption frame also removes the content.

However, adding a caption to a default drawing object makes the caption frame a frame and not a drawing object itself. I believe this is a bug in the import filter.