Issue 92490 - In formulas, cells that are referenced more than once will be assigned more than one colour
Summary: In formulas, cells that are referenced more than once will be assigned more t...
Status: CLOSED DUPLICATE of issue 26787
Alias: None
Product: Calc
Classification: Application
Component: code (show other issues)
Version: OOo 3.0 Beta 2
Hardware: Unknown All
: P3 Trivial (vote)
Target Milestone: ---
Assignee: spreadsheet
QA Contact: issues@sc
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-08-05 17:39 UTC by vrrp
Modified: 2008-08-06 09:33 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Latest Confirmation in: ---
Developer Difficulty: ---


Attachments
Example of cells referenced more than once being highlighted in different colours (59.87 KB, image/png)
2008-08-05 17:41 UTC, vrrp
no flags Details
Very simple spreadsheet as described in the bug report (6.59 KB, application/vnd.oasis.opendocument.spreadsheet)
2008-08-05 17:42 UTC, vrrp
no flags Details

Note You need to log in before you can comment on or make changes to this issue.
Description vrrp 2008-08-05 17:39:19 UTC
In Calc, whenever you use a formula that references a given cell more than once,
the cell colour is not remembered.

Steps:
Write the value "1" in cells A1 and A2.
Create a formula in cell A3 that reads "=A1+A2+A2".
Select cell A3, then click on the box where you normally input the text. The
formula will expand on the cell, showing each cell reference, e.g. A1, in a
different colour, that is accompanied by a rectangle highlighting that cell in
the same colour.

You will notice that A1 will be highlighted blue, A2 in magenta, but the cell
references on the A3 cell will be in blue, red and magenta respectively.
Calc should check whether a given cell has already been highlighted in the
current formula, before using a new colour to highlight it (thus causing the red
highlight to be overwritten by the magenta one).

This issue has been around since I can remember (at least since 2.0). This makes
it extremely difficult to debug complicated formulas, as you have tons of
colours that are not used and that do not correspond to any highlighted cell,
and conversely you can't "see" how many times and where a given cell of a given
colour is referenced in the formula (since every time it appears it's in a
different colour).

I can attach (can't figure out how) a very simple .ods file with the steps
above, and a small png picture with a much more complicated formula, which makes
the problem very clear, in case people consider it worthy.

Thank you.
Comment 1 vrrp 2008-08-05 17:41:24 UTC
Created attachment 55577 [details]
Example of cells referenced more than once being highlighted in different colours
Comment 2 vrrp 2008-08-05 17:42:22 UTC
Created attachment 55578 [details]
Very simple spreadsheet as described in the bug report
Comment 3 frank 2008-08-06 09:32:38 UTC
double to Issue 7320 and Issue 26787 .

*** This issue has been marked as a duplicate of 26787 ***
Comment 4 frank 2008-08-06 09:33:00 UTC
closed double