Bug 64345 - EDITING: Selected area loses selection when switching sheet
Summary: EDITING: Selected area loses selection when switching sheet
Status: REOPENED
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
Inherited From OOo
Hardware: All All
: medium normal
Assignee: ahmethcelik
URL:
Whiteboard:
Keywords:
: 101056 128520 (view as bug list)
Depends on:
Blocks: Calc-UX Selection
  Show dependency treegraph
 
Reported: 2013-05-08 06:12 UTC by Wu, Lei
Modified: 2023-12-01 04:58 UTC (History)
8 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 Wu, Lei 2013-05-08 06:12:02 UTC
Problem description: 
When I selected some cells in one of sheets and then switch or create another sheet, the selected area disappear.

Steps to reproduce:
1. Selected the cells from A1 to B2;
2. Click the "+" button to create another sheet;
3. Switch to the first sheet which the selected cells in.

Current behavior:
The selected area from (A1:B2) to A1.
Expected behavior:
The selected area is (A1:B2)

              
Operating System: Windows 7
Version: 4.0.1.2 release
Comment 1 Buovjaga 2014-11-07 11:54:19 UTC
Confirmed, enhancement.

Win 7 64-bit Version: 4.4.0.0.alpha1+
Build ID: 8b21b5cbe78945b27525b4ce78ae3d981f90590f
TinderBox: Win-x86@39, Branch:master, Time: 2014-11-06_03:55:51
Comment 2 Thomas Lendo 2016-11-11 10:41:48 UTC
This behavior (losing cell selection) also occurs when switching to print preview and back to the current sheet.
Comment 3 Thomas Lendo 2017-02-15 12:15:45 UTC
Inherited from OOo, see https://bz.apache.org/ooo/show_bug.cgi?id=93938
Set "Hardware" to "All".

By the way, a selected/marked range also disappears in Writer when going to Print Preview and back! Should this behavior in Writer be another bug or can we set "Component" from "Calc" to "LibreOffice" or "UI"? I think all components of LibreOffice use a common code that causes this bug.

Confirmed in Version: 5.3.0.3
Build ID: 7074905676c47b82bbcfbea1aeefc84afe1c50e1
CPU Threads: 8; OS Version: Windows 6.2; UI Render: default; Layout Engine: new; Calc: CL
Comment 4 Buovjaga 2017-02-15 16:06:10 UTC
(In reply to Thomas Lendo from comment #3)
> By the way, a selected/marked range also disappears in Writer when going to
> Print Preview and back! Should this behavior in Writer be another bug or can
> we set "Component" from "Calc" to "LibreOffice" or "UI"? I think all
> components of LibreOffice use a common code that causes this bug.

I asked a Calc dev and you should create a new report for the Writer issue.
Comment 5 Thomas Lendo 2017-02-16 09:11:13 UTC
For Writer: Bug 106038 - Selected range of text disappears when going to Print Preview and back
Comment 6 Thomas Lendo 2017-07-15 20:58:56 UTC
*** Bug 101056 has been marked as a duplicate of this bug. ***
Comment 7 Thomas Lendo 2018-09-14 09:58:17 UTC
Still reproducible.

Version: 6.2.0.0.alpha0+ (x64)
Build ID: 18c5089df091bddeb8c2dc339776671964389040
CPU threads: 8; OS: Windows 10.0; UI render: GL; 
TinderBox: Win-x86_64@42, Branch:master, Time: 2018-09-12_23:24:12
Locale: de-AT (de_AT); Calc: CL
Comment 8 Buovjaga 2020-04-26 15:32:10 UTC
*** Bug 128520 has been marked as a duplicate of this bug. ***
Comment 9 Thomas Lendo 2020-08-14 20:04:45 UTC
Changing from enhancement to bug because this is not an intended use for selecting cells.
Comment 10 Commit Notification 2022-02-01 10:19:21 UTC
Ahmet Hakan Çelik committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/c82634d5a222120b3a95cff1b950a7f7a1f5ded1

tdf#64345: EDITING: Selected area looses selection when switching sheet

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.
Comment 11 Heiko Tietze 2022-02-18 08:48:17 UTC
Patch was reverted, reopening the issue...
Comment 12 Commit Notification 2022-02-18 08:48:38 UTC
Ahmet Hakan Çelik committed a patch related to this issue.
It has been pushed to "master":

https://git.libreoffice.org/core/commit/62a8580587aec1c1a3070448b063889c01ac5c11

Revert tdf#64345: EDITING: Selected area looses selection when switching sheet

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.