Bug 148437 - Hyperlink Dialog: Replace entire content if cell contains a formula
Summary: Hyperlink Dialog: Replace entire content if cell contains a formula
Status: RESOLVED FIXED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
unspecified
Hardware: All All
: medium normal
Assignee: Andreas Heinisch
URL:
Whiteboard: target:7.4.0
Keywords:
Depends on:
Blocks: Hyperlink-Dialog
  Show dependency treegraph
 
Reported: 2022-04-07 09:32 UTC by Andreas Heinisch
Modified: 2022-04-21 08:05 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 Andreas Heinisch 2022-04-07 09:32:03 UTC
Description:
Inserting a hyperlink through the hyperlink dialog should replace the content of the entire cell if it contains a hyperlink.

This is especially evident after the enhancement Bug 80043 was implemented.

Steps to Reproduce:
1. Insert =HYPERLINK("www.libreoffice.de"; "LibreOffice") into cell A1
2. Select cell A2 and then cell A1
3. Press STRG + K to open the hyperlink dialog
4. Insert a link and change the text
5. Press Apply

Actual Results:
The cell changes to edit mode and inserts the hyperlink at the beginning of the cell. Partially the old formula remains visible.

Expected Results:
The entire content of the cell should be replaced with the new hyperlink.


Reproducible: Always


User Profile Reset: No



Additional Info:
Evident after Bug 80043
Comment 1 Andreas Heinisch 2022-04-07 09:36:21 UTC
Sry, had a  typo:
Inserting a hyperlink through the hyperlink dialog should replace the content of the entire cell if it contains a formula.
Comment 2 Heiko Tietze 2022-04-07 11:02:41 UTC
Any concerns, Eike?
Comment 3 Commit Notification 2022-04-21 08:02:25 UTC
Andreas Heinisch committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/66365e9fb2105c98f7bf16152fb4910f605dae78

tdf#148437 - Hyperlink: Replace entire content if cell contains a formula

It will be available in 7.4.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.