Bug 77644 - Inserting a hyperlink on text typed in cell and selected with Ctrl+A leads to doubled text
Summary: Inserting a hyperlink on text typed in cell and selected with Ctrl+A leads to...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
4.2.3.3 release
Hardware: Other Windows (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Hyperlink-Calc
  Show dependency treegraph
 
Reported: 2014-04-18 13:27 UTC by A (Andy)
Modified: 2019-12-03 18:38 UTC (History)
2 users (show)

See Also:
Crash report or crash signature:


Attachments
Screenshot with the issue (140.59 KB, image/png)
2014-05-07 00:25 UTC, m_a_riosv
Details

Note You need to log in before you can comment on or make changes to this bug.
Description A (Andy) 2014-04-18 13:27:58 UTC
Problem Description: 
If you insert a hyperlink to a text then in specific cases the text will be doubled.

Steps to Reproduce:
1. Open CALC
2. Go to any cell in CALC and type "Test"
3. Press CTRL + A to select the whole word
4. Go to INSERT -> HYPERLINK
5. In the section INTERNET insert in the TARGET field any webpage link
(Keep attention that in the field TEXT below only "Test" is shown as expected -> correct)
6. Press APPLY

Result:
The cell shows now "TestTest" with the second word having the hyperlink.

Expected Behavior:
The cell should only show "Test" with the hyperlink.

Note: 
Take care to follow exactly the steps, otherwise it would not be reproducible, e.g. if you select the text in step 3 with the mouse instead of CTRL + A then it is not reproducible.


Reproduced on LO 4.2.3.3, Win 8.1
Comment 1 m_a_riosv 2014-04-19 02:31:40 UTC
Hi Andy, thanks for reporting.

Reproducible with:
Win7x64Ultimate
Version: 4.2.3.3 Build ID: 882f8a0a489bc99a9e60c7905a60226254cb6ff0
Version: 4.2.4.1 Build ID: d4c441391e20647b3d2e8dde4d20aa868e77e515
Version: 4.2.5.0.0+ Build ID: cc45204a7a286cef32fc7faf266dc2da235c1ae2
   TinderBox: Win-x86@42, Branch:libreoffice-4-2, Time: 2014-04-17_02:46:49
Version: 4.3.0.0.alpha0+ Build ID: 0ce6d9bcea7c37a7cb2c42e8393e2e20780bd171
   TinderBox: Win-x86@39, Branch:master, Time: 2014-04-17_00:11:33
Comment 2 Kohei Yoshida 2014-05-06 23:43:12 UTC Comment hidden (obsolete)
Comment 3 m_a_riosv 2014-05-07 00:14:36 UTC
Still reproducible for me with:
Version: 4.3.0.0.alpha1+ Build ID: a1dd961c3093f5f7624e4d1f2240e9120fd13f23
   TinderBox: Win-x86@39, Branch:master, Time: 2014-05-06_11:47:48

Just after
Test Ctr+A
calling Menu/Insert/Hyperlink.
without any [Enter]
Introducing the text in the cell and after editing doesn't reproduce the issue for me.
Comment 4 Kohei Yoshida 2014-05-07 00:16:26 UTC Comment hidden (obsolete)
Comment 5 m_a_riosv 2014-05-07 00:25:22 UTC
Created attachment 98595 [details]
Screenshot with the issue

Wow, it is what I get, with the latest build for master.
Comment 6 Kohei Yoshida 2014-05-10 03:40:41 UTC Comment hidden (obsolete)
Comment 7 Kohei Yoshida 2014-05-16 18:14:14 UTC
Hmm... I just reproduced this with 3.5.  Must be a very old bug.
Comment 8 Kerensky 2014-05-18 17:36:47 UTC
Hello,

I found a similar bug, which is (according to me) linked with this one:

If you create 2 different hyperlinks in same cell,  and if the "center text" option is enabled, then the second hyperlink target will be replaced by the first one.

Steps to reproduce:
1. Open CALC
2. Go to any cell, and ensure that "text align left" option is enabled.
3. Create a first Web hyperlink with following options:
   - Target: http://www.aaa.com/
   - Text: link_a
4. Insert a space character after hyperlink text 'link_a', then create another Web hyperlink with following options:
   - Target: http://www.bbb.com/
   - Text: link_b
Result: the 2 hyper links are now separated by a space character, inside the cell: 
[link_a link_b]
5. Check the 2 web hyperlink, the targets may be different, as expected.
6. Choose "center text option" and then check again the targets.

Result: target for hyperlink 2 is replaced by target for hyperlink 1 (i.e. http://www.aaa.com/).

Tested on LibreOffice version: 4.2.4.2.

Hope this helps.
Comment 9 QA Administrators 2015-06-08 14:43:14 UTC Comment hidden (obsolete)
Comment 10 Buovjaga 2015-08-02 11:50:29 UTC
Repro.

Win 7 Pro 64-bit Version: 5.1.0.0.alpha1+
Build ID: 902255645328efde34ddf62227c8278e8dd61ff0
TinderBox: Win-x86@39, Branch:master, Time: 2015-07-30_03:52:07
Locale: en-US (fi_FI)
Comment 11 QA Administrators 2016-09-20 10:21:56 UTC Comment hidden (obsolete)
Comment 12 m_a_riosv 2016-09-21 23:32:27 UTC
Still there
Win10x64
Version: 5.2.2.1 (x64)
Build ID: 3c2231d4aa4c68281f28ad35a100c092cff84f5d
CPU Threads: 4; OS Version: Windows 6.19; UI Render: default; 
Locale: es-ES (es_ES); Calc: group
Comment 13 QA Administrators 2018-08-09 02:35:40 UTC Comment hidden (obsolete)
Comment 14 Timur 2019-12-03 18:38:34 UTC
This from Description seems OK since long ago. There was hyperlink change in 4.4 and fix in 5.3. And it's a pity it was abandoned and not tested as requested.

Comment 8 is different. Normally that would be another bug, but in my view it's NotABug because text hxperlinks remain correct, only second one is not shown on mouse over after cell is centered.

If someone retests bug, please explain and feel free to set again New.