Bug 167833 - pasted anchored objects are selected
Summary: pasted anchored objects are selected
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Writer (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium enhancement
Assignee: Michael Stahl
URL:
Whiteboard: target:26.2.0, inReleaseNotes:26.2
Keywords:
Depends on:
Blocks: Paste
  Show dependency treegraph
 
Reported: 2025-08-06 14:55 UTC by Michael Stahl
Modified: 2025-08-07 08:45 UTC (History)
2 users (show)

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 Michael Stahl 2025-08-06 14:55:37 UTC
users have complained that if they paste some anchored object(s) in Writer, the object(s) are selected, while they prefer that the text cursor remain at the insert position.

reportedly Word does the latter so of course we should do the same, say these users.

on the other hand, other users may prefer the current behaviour? not clear...
Comment 1 Commit Notification 2025-08-06 14:59:39 UTC
Michael Stahl committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/6204dfeb53aefbc4de1c82a6bfc2f6903565f5c1

tdf#167833 sw: if an anchored object is pasted, don't select it

It will be available in 26.2.0.

The patch should be included in the daily builds available at
https://dev-builds.libreoffice.org/daily/ in the next 24-48 hours. More
information about daily builds can be found at:
https://wiki.documentfoundation.org/Testing_Daily_Builds

Affected users are encouraged to test the fix and report feedback.
Comment 2 Michael Stahl 2025-08-06 15:02:48 UTC
the behaviour is configurable with expert config setting Office::Writer::Cursor::Option::SelectPastedAnchoredObject

if necessary we can add a checkbox for it in Options, let's see if we can do without...