Bug 142946 - Right-clicking inside just-created text box removes the box
Summary: Right-clicking inside just-created text box removes the box
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Textbox
  Show dependency treegraph
 
Reported: 2021-06-19 20:43 UTC by Mike Kaganski
Modified: 2023-05-15 18:34 UTC (History)
3 users (show)

See Also:
Crash report or crash signature:


Attachments
Screen cast of disappearing text box (273.28 KB, image/gif)
2021-06-19 20:43 UTC, Mike Kaganski
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Mike Kaganski 2021-06-19 20:43:45 UTC
Created attachment 173019 [details]
Screen cast of disappearing text box

An inserted text box object will be automatically removed if no text was added there, and the object looses focus. This is normal, but in the following scenario this is wrong:

1. Create a new text box object
2. Try to right-click inside it, to get a context menu - e.g., to paste.

=> text box disappears, the context menu gets opened in the text body.

This should not happen, because logically the text box is still active.

Repro in Version: 7.1.4.2 (x64) / LibreOffice Community
Build ID: a529a4fab45b75fefc5b6226684193eb000654f6
CPU threads: 12; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win
Locale: ru-RU (ru_RU); UI: en-US
Calc: threaded

Also repro in OOo 3.2.0.
Comment 1 V Stuart Foote 2021-06-19 21:47:10 UTC
Confirmed. Should not have to enter a text string "place holder" just to keep the draw Text box available/focused when attempting context menu manipulation.
Comment 2 Heiko Tietze 2021-06-28 09:57:54 UTC
Frequently reported (the text box also disappears when you left-click somewhere else) and the suggestion is to prefer frames, see bug 139606. Not sure if it makes sense to put effort in this particular issue.
Comment 3 Mike Kaganski 2021-06-28 10:02:52 UTC
(In reply to Heiko Tietze from comment #2)
> Frequently reported (the text box also disappears when you left-click
> somewhere else)

Removing it when left-clicking elsewhere is expected and normal, as mentioned in comment 0; test box without text is considered something to remove. Unlike the right-click inside case considered here.

> and the suggestion is to prefer frames, see bug 139606.

Suggestions how to workaround something, and what is better to use is a specific case, is irrelevant. When something is a bug, it should be fixed.

> Not sure if it makes sense to put effort in this particular issue.

It does. Again: either one removes a feature at all, or accepts bugs as bugs (which indeed doesn't mean that I expect the fix tomorrow; it may be OK if it is delayed to the end of the next week ;-P)
Comment 4 BogdanB 2023-05-15 18:34:50 UTC
Also in
Version: 7.6.0.0.alpha1+ (X86_64) / LibreOffice Community
Build ID: 3df90fbc24a650cf6b0767d00821753ed3d4f5f4
CPU threads: 16; OS: Linux 5.19; UI render: default; VCL: gtk3
Locale: ro-RO (ro_RO.UTF-8); UI: en-US
Calc: threaded

The simple workaround is to type anything (even a space) and then right click.