Bug 108263 - Comment is duplicated after copying sheet to new document (see comment 8)
Summary: Comment is duplicated after copying sheet to new document (see comment 8)
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
: 138881 157798 (view as bug list)
Depends on:
Blocks: Calc-Comments
  Show dependency treegraph
 
Reported: 2017-05-31 11:54 UTC by Robert Monnier
Modified: 2023-10-16 22:35 UTC (History)
5 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 Robert Monnier 2017-05-31 11:54:52 UTC
Repeated this a couple of times :

Moving or copying a sheet that contains a comment from one document to another. The comment is attached to a cell, say H6, contains a short text and is made visible.

In the destination document, the original comment is there but it is also duplicated in the top left (A1) cell and I have not been able to delete it Contents of the Comment can be selected and erased but no way to get rid of the Comment box. Can't open a contextual menu to make it not visible, or erase it.

Let's call it a buglet. Actually the only way to get rid of the duplicate Comment is to delete the sheet. The workaround would be to first save the text of the comment in a cell, erase the comment, copy or move the sheet to the destination document, then recreate the comment.
Comment 1 Buovjaga 2017-06-04 18:26:52 UTC
The root cause might be included in these: https://bugs.documentfoundation.org/showdependencytree.cgi?id=101216&hide_resolved=1
Comment 2 raal 2017-06-06 18:59:45 UTC
I can not confirm with Version: 5.5.0.0.alpha0+
Build ID: 6533c30f7f8b62671fef9e636c49b11127812ed1
CPU threads: 4; OS: Linux 4.4; UI render: default; VCL: gtk2; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-05-26_02:35:54

steps:
new file
insert coment with text "aaa"
show comment
copy sheet to new file
Comment 3 Alex Thurgood 2017-06-12 08:20:09 UTC
No repro with

Version: 5.3.3.2
Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448
CPU Threads: 2; OS Version: Mac OS X 10.12.4; UI Render: default; Layout Engine: new; 
Locale: fr-FR (fr_FR.UTF-8); Calc: group


1) Opened Calc document.
2) Inserted a comment into a cell containing text in E2. Made comment visible.
3) Opened new Calc sheet.
4) Dragged sheet 1 from first Calc sheet onto second Calc document. The sheet is inserted and comment visible in correct place. No further comment boxes visible.
Comment 4 Alex Thurgood 2017-06-12 08:21:14 UTC Comment hidden (obsolete)
Comment 5 Alex Thurgood 2017-06-12 08:21:51 UTC Comment hidden (obsolete)
Comment 6 Robert Monnier 2017-06-12 17:36:54 UTC Comment hidden (obsolete)
Comment 7 Buovjaga 2017-06-13 04:10:49 UTC Comment hidden (obsolete)
Comment 8 Robert Monnier 2017-06-13 15:18:25 UTC
I downloaded LibreOffice 5.3.3.2 (Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448) - same behaviour.
(In reply to Buovjaga from comment #7)
> (In reply to Robert Monnier from comment #6)
> > (In reply to Alex Thurgood from comment #5)
> > > Please also indicate which version of macOS you are using.
> > 
> > Version of Mac OS is 10.11.1
> 
> Did you try with LibreOffice 5.3.3?

I downloaded version 5.3.3.2 and repeated the steps with the same results using the original file.

(Build ID: 3d9a8b4b4e538a85e0782bd6c2d430bafe583448)

A few more trials : 

Trial A
A1. Created a new spreadsheet document, single sheet.
A2. Entered a comment in cell B4. Made comment visible (Show comment)
A3. Document is NOT SAVED.
A4. Control-click on sheet tab - Move or Copy sheet ...
A5. (Copy by default, as it's a single sheet ?)
A6. - new document -
A7. Comment is NOT duplicated.

Same steps but saved the document, closed and reopened : comment duplicated

Trial B
B1. Created a new spreadsheet document, single sheet.
B2. Entered a comment in cell B4. Made comment visible (Show comment)
B3. Saved the spreadsheet document, closed the document, reopened the document.
B4. Control-click on sheet tab - Move or Copy sheet ...
B5. (Copy by default, as it's a single sheet ?)
B6. - new document -
B7. COMMENT IS DUPLICATED.

Both comments are stacked, but it is visible that there are 2 arrows (it seems to point to 2 different cells, B3 and A1). Click selecting and moving the top comment moves the DUPLICATE comment.

Arrow of original comment points to red dot at top right corner of cell B4. Arrow of DUPLICATED comment points to top left corner of cell A1. If DUPLICATE comment selected, a green dot appears to top left of cell A1, Ctrl Click opens menu, but no possibility to erase DUPLICATE comment.

So it seems this happens from a file that has been saved, and reopened. I don't know if this is helpful. It it can be useful that I do more trials, let me know.

Again, if comment is not MADE VISIBLE before saving, it is not duplicated.

If repeating the steps of Trial B but not making comment visible, the comment is not duplicated.

RM
Comment 9 Telesto 2017-06-13 18:29:19 UTC Comment hidden (obsolete)
Comment 10 Buovjaga 2017-06-15 16:05:53 UTC
(In reply to Telesto from comment #9)
> I can repro "Trial B" in comment 8 (but not "Trail A") with:
> Version: 5.5.0.0.alpha0+
> Build ID: 076ed447f694239d5c67adee528ea6e471d909ff
> CPU threads: 4; OS: Windows 6.19; UI render: default; 
> TinderBox: Win-x86@42, Branch:master, Time: 2017-06-09_23:54:20
> Locale: nl-NL (nl_NL); Calc: CL

Yikes, it's true!

Arch Linux 64-bit, KDE Plasma 5
Version: 5.5.0.0.alpha0+
Build ID: 2802dca10eef67554a81cb2347d5f648fa6fcd63
CPU threads: 8; OS: Linux 4.11; UI render: default; VCL: kde4; 
Locale: fi-FI (fi_FI.UTF-8); Calc: group
Built on June 10th 2017

Arch Linux 64-bit
LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4
Comment 11 Kevin Suo 2018-01-03 11:42:34 UTC
Still reproducible

Version: 6.1.0.0.alpha0+
Build ID: 6a29d733651eb307ee8a6c3cf1bc64579070e53a
CPU threads: 4; OS: Linux 4.14; UI render: default; VCL: gtk3; 
Locale: zh-CN (zh_CN.UTF-8); Calc: group threaded
Comment 12 Xavier Van Wijmeersch 2018-01-03 17:03:01 UTC
Following the instruction of comment8; i cannot reproduce

Version: 5.3.8.0.0+
Build ID: 7f1297d9b4f449eb9ada8008fb21b7046d1a8f19
CPU Threads: 8; OS Version: Linux 4.9; UI Render: default; VCL: kde4; Layout Engine: new; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:libreoffice-5-3, Time: 2017-11-10_15:56:34
Locale: nl-BE (en_US.UTF-8); Calc: group

Version: 6.1.0.0.alpha0+
Build ID: 4ead201c578ce4cc17f65d2a97a591e112307a1a
CPU threads: 8; OS: Linux 4.9; UI render: default; VCL: kde4; 
TinderBox: Linux-rpm_deb-x86_64@70-TDF, Branch:master, Time: 2017-12-31_00:43:41
Locale: nl-BE (en_US.UTF-8); Calc: group threaded
Comment 13 Telesto 2018-07-17 10:41:28 UTC
(In reply to Buovjaga from comment #10)
> (In reply to Telesto from comment #9)
> > I can repro "Trial B" in comment 8 (but not "Trail A") with:
> 
Still repro

Version: 6.2.0.0.alpha0+
Build ID: e7d3976cb80f7e7401be071f905a764dd6cb4d6e
CPU threads: 4; OS: Windows 6.3; UI render: default; 
TinderBox: Win-x86@42, Branch:master, Time: 2018-06-29_04:46:32
Locale: nl-NL (nl_NL); Calc: CL

1.  Created a new spreadsheet document, single sheet.
2.  Entered a comment in cell B4. Made comment visible (Show comment)
3.  Control-click on sheet tab - Move or Copy sheet ...
4.  Copy by default, as it's a single sheet ?)
5.  Open the new sheet
6.  Delete the comment in the copy -> still a comment box
Comment 14 QA Administrators 2019-07-18 02:49:04 UTC Comment hidden (obsolete)
Comment 15 Timur 2019-09-18 13:06:19 UTC
Repro 6.4+.
Comment 16 QA Administrators 2021-09-18 03:26:03 UTC Comment hidden (obsolete)
Comment 17 Buovjaga 2023-06-20 07:06:54 UTC
*** Bug 138881 has been marked as a duplicate of this bug. ***
Comment 18 m_a_riosv 2023-10-16 22:35:33 UTC
*** Bug 157798 has been marked as a duplicate of this bug. ***