Bug 97143 - Only latest range highlighted when selecting multiple cell ranges using CTRL modifier (see comment 3)
Summary: Only latest range highlighted when selecting multiple cell ranges using CTRL ...
Status: RESOLVED NOTABUG
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Calc-UX Cell-Selection
  Show dependency treegraph
 
Reported: 2016-01-14 22:43 UTC by Óvári
Modified: 2023-11-21 10:29 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
Column B without frame (123.32 KB, image/png)
2016-01-16 21:08 UTC, Óvári
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Óvári 2016-01-14 22:43:04 UTC
Thank you Dennis Francis for your patch of bug 96523.

1. Open LibreOffice Calc
2. In cell A1, type:  =SUM(
3. Press and hold Shift, and then click column headings B followed by D.

Current behaviour: column B frame disappears when column D is selected

Expected behaviour: column B frame remains when column D is selected.

Thank you

Version: 5.2.0.0.alpha0+
Build ID: 813a319fe836d1ed1c967928bc044643d0b4c07d
CPU Threads: 2; OS Version: Windows 6.29; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-12_07:46:53
Comment 1 Dennis Francis 2016-01-16 13:13:03 UTC
Hi Óvári

I tried to recreate the issue on master updated on 20160116 at 11:00 UTC, 
but could not.

When I do these steps, I get the columns B,C and D selected and the formula becomes =sum(B:D). Could you try again on the latest build ?
Comment 2 Dennis Francis 2016-01-16 13:15:14 UTC
(In reply to Dennis Francis (ldcs.co.in) from comment #1)
> Hi Óvári
> 
> I tried to recreate the issue on master updated on 20160116 at 11:00 UTC, 
> but could not.
> 
> When I do these steps, I get the columns B,C and D selected and the formula
> becomes =sum(B:D). Could you try again on the latest build ?

Forgot to mention that my OS is Fedora 23 64bit.
Comment 3 Óvári 2016-01-16 21:08:11 UTC
Created attachment 122011 [details]
Column B without frame

Sorry for incorrectly writing the Description. The Shift key works correctly; however, the Ctrl key has challenges.

1. Open LibreOffice Calc
2. In cell A1, type:  =SUM(
3. Press and hold Ctrl, and then click column headings B followed by D.

Current behaviour: column B frame disappears when column D is selected

Expected behaviour: column B frame remains when column D is selected.

I have included a screenshot for your convenience.

Thank you

Version: 5.2.0.0.alpha0+
Build ID: 0174562fa9e49bf989a571c6ccd51e558109b561
CPU Threads: 2; OS Version: Windows 6.29; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-16_00:03:18
Comment 4 Buovjaga 2016-01-25 08:33:22 UTC
Repro.

I almost couldn't select the headers because of the tooltip getting in the way.. had to zoom real close.

Win 7 Pro 64-bit Version: 5.2.0.0.alpha0+
Build ID: 6b65a0e83c4798f117be61af91dbaebdc85e94b7
CPU Threads: 4; OS Version: Windows 6.1; UI Render: default; 
TinderBox: Win-x86@39, Branch:master, Time: 2016-01-21_03:41:08
Locale: fi-FI (fi_FI)
Comment 5 QA Administrators 2017-03-06 13:59:30 UTC Comment hidden (obsolete)
Comment 6 Óvári 2017-03-06 22:04:49 UTC
(In reply to QA Administrators from comment #5)
> If the bug is present, please leave a comment that includes:
> a) the version of LibreOffice;
> b) your operating system; and
> c) any changes you see in the bug behavior
a) LibreOffice Version: 5.3.0.3
Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
CPU Threads: 2; OS Version: Linux 4.4; UI Render: default; VCL: gtk2; Layout Engine: new

b) Operating system: Linux Mint 18.1 Cinnamon 64-bit

c) Frame does not show in cell B1
Comment 7 QA Administrators 2018-03-07 03:40:37 UTC Comment hidden (obsolete)
Comment 8 Óvári 2018-03-07 05:40:46 UTC
(In reply to QA Administrators from comment #7)
> If the bug is present, please leave a comment that includes the information
> from Help - About LibreOffice.
Version: 6.0.2.1
Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89
CPU threads: 2; OS: Linux 4.13; UI render: default; VCL: gtk2

Linux Mint 18.3 Cinnamon 64-bit
Comment 9 Xavier Van Wijmeersch 2018-03-07 18:45:26 UTC
No repro with, I have same result as in comment1, column B,C,D are highlighted
and after enter I get "=sum(B:D)"

Version: 6.1.0.0.alpha0+
Build ID: a790ee54319583897d82d4372243df870d4452a6
CPU threads: 8; OS: Linux 4.14; UI render: default; VCL: kde4; 
Locale: nl-BE (en_US.UTF-8); Calc: group
Comment 10 Xavier Van Wijmeersch 2018-03-07 19:12:05 UTC
On the image can be seen that the reporter is holding Ctrl and not Shift as explained in his description. When holding Ctrl and clicking on column B then its highlighted. But when clicking on column D the highlighting is moved from column B to column D; wish is the normal behaviour; and the result is then =sum(B:B;D:D)
Seems to me its a working, so can it be closed as WFM??? someone else may say the last word on it
Comment 11 Óvári 2018-03-07 20:36:35 UTC
(In reply to Xavier Van Wijmeersch from comment #10)
> On the image can be seen that the reporter is holding Ctrl and not Shift as
> explained in his description. When holding Ctrl and clicking on column B
> then its highlighted. But when clicking on column D the highlighting is
> moved from column B to column D; wish is the normal behaviour; and the
> result is then =sum(B:B;D:D)
> Seems to me its a working, so can it be closed as WFM??? someone else may
> say the last word on it

Sorry for the confusion, the correct description is in Comment 3.
Comment 12 QA Administrators 2019-03-08 03:41:31 UTC Comment hidden (obsolete)
Comment 13 Óvári 2020-05-31 02:28:44 UTC
still repro in 

LibreOffice
Version: 6.4.4.2
Build ID: 3d775be2011f3886db32dfd395a6a6d1ca2630ff
CPU threads: 2; OS: Linux 5.3; UI render: default; VCL: gtk3

Linux Mint 19.3 Cinnamon 64-bit
Comment 14 QA Administrators 2022-06-01 03:37:40 UTC Comment hidden (obsolete)
Comment 15 Óvári 2022-06-01 10:25:19 UTC
(In reply to QA Administrators from comment #14)

still reproducible in

Version: 7.3.3.2 / LibreOffice Community
Build ID: d1d0ea68f081ee2800a922cac8f79445e4603348
CPU threads: 2; OS: Linux 5.4; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Flatpak
Calc: threaded
Comment 16 Stéphane Guillou (stragu) 2023-11-20 14:44:30 UTC
It has always been like this: only the latest addition to the formula is shown.
All cell ranges are framed with a coloured border when entering edit mode on an existing formula.

Same in OOo 3.3.
Same in recent trunk build:

Version: 24.2.0.0.alpha0+ (X86_64) / LibreOffice Community
Build ID: baecfd21797310bb15ab98ca3962445d99e397db
CPU threads: 8; OS: Linux 5.15; UI render: default; VCL: gtk3
Locale: en-AU (en_AU.UTF-8); UI: en-US
Calc: threaded

I think this is more of an enhancement request than a bug.
Comment 17 Heiko Tietze 2023-11-21 06:18:44 UTC
(In reply to Stéphane Guillou (stragu) from comment #16)
> I think this is more of an enhancement request than a bug.
Whether shift or ctrl it's still multi-selection and we need to draw a selection frame on B and D. It might be working technically but lacks on proper feedback. IMO it's a bug.

(In reply to Xavier Van Wijmeersch from comment #10)
> ...the reporter is holding Ctrl and not Shift...
!
Comment 18 Stéphane Guillou (stragu) 2023-11-21 10:07:02 UTC
(In reply to Heiko Tietze from comment #17)
> (In reply to Stéphane Guillou (stragu) from comment #16)
> > I think this is more of an enhancement request than a bug.
> Whether shift or ctrl it's still multi-selection and we need to draw a
> selection frame on B and D. It might be working technically but lacks on
> proper feedback. IMO it's a bug.
Sorry, I disagree, and I'm even tempted to say it should be closed as "not a bug", because:
- the current behaviour is in direct link to the highlighting in the formula: the latest argument added to the formula is highlighted in black (as shown in attachment 122011 [details]);
- it is the same as when adding arguments by single click. Try this: click on cell, type a comma, click on another cell, type a comma... Ctrl + click is a shortcut for doing the same thing, result is the same.

This is distinct to selecting a non-rectangular cell range outside of formulas with the Ctrl key.
- Ctrl + click outside of formulas creates a single, non-contiguous range, and should be highlighted as such
- Ctrl + click inside formulas is a way to quickly add separate arguments, which is why it only highlights one at a time

If the behaviour is to be changed, I think it should match the behaviour of entering edit mode on a cell with a pre-existing formula: all arguments should be highlighted with different colours, so they can be matched. In which case, it's an enhancement.
Comment 19 Heiko Tietze 2023-11-21 10:29:45 UTC
Understanding the behavior as adding rather than multi-selection... so let it be NAB.