Bug 127419 - EDITING: Database range is extended automatically against my wishes when filtering
Summary: EDITING: Database range is extended automatically against my wishes when filt...
Status: NEW
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.4.0 release
Hardware: x86-64 (AMD64) All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: preBibisect, regression
: 159076 (view as bug list)
Depends on:
Blocks: Data-Filter Calc-DataRange
  Show dependency treegraph
 
Reported: 2019-09-07 13:28 UTC by leander.holtmann
Modified: 2024-01-24 05:44 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 leander.holtmann 2019-09-07 13:28:44 UTC
Description:
When I add a database range (e. g. from A1:B10) and have something in the subsequent cells of one of the columns (in this example B11 and B12) like SUM() and then filter the database range via Standard or Advanced filter, LibreOffice just extends the database range against my wishes to the row that is completely empty (in this example the range is then A1:B12).

The options when defining the database range don't matter. I did this with a new user profile.

I do not know whether this behaviour is intended, thus a feature, or a bug. If it is intendet, consider this a enhancement request.

Steps to Reproduce:
1. Open new document
2. Mark cells A1 to B10
3. Define a database range via 'Data - Define Range...' for A1:B10
4. The options and the name don't matter
5. Write =SUM(A1:A10) in cell A11 and A12
6. Put the cursor back to cell A1
7. Open the Standard Filter dialogue via 'Data - More Filters - Standard Filter'

Actual Results:
As soon as the Standard Filter dialogue opens, the database range is extended to A1:B12

Expected Results:
My defined database range should not be extended against my wishes. If I define a database range, it has to stay how I defined it.


Reproducible: Always


User Profile Reset: Yes



Additional Info:
Version: 6.3.1.2 (x64)
Build ID: b79626edf0065ac373bd1df5c28bd630b4424273
CPU threads: 4; OS: Windows 10.0; UI render: GL; VCL: win; 
Locale: de-DE (de_DE); UI-Language: en-GB
Calc: CL
Comment 1 Oliver Brinzing 2019-09-08 14:09:42 UTC
already reproducible with:

Version 3.6.7.2 (Build ID: e183d5b)

but *not* reproducible with AOO 4.1.5
Comment 2 Pit Zaclade 2019-09-12 14:46:55 UTC
Reproducable with LO 6.2.7.1 (x64) with booth filter types!
Comment 3 Pit Zaclade 2019-09-12 17:11:37 UTC
(In reply to Oliver Brinzing from comment #1)
> already reproducible with:
> 
> Version 3.6.7.2 (Build ID: e183d5b)
> 
> but *not* reproducible with AOO 4.1.5

But in 4.1.5 can you not correct sort the database range!
Comment 4 QA Administrators 2021-10-16 03:51:56 UTC Comment hidden (obsolete)
Comment 5 Stéphane Guillou (stragu) 2024-01-24 05:10:19 UTC
*** Bug 159076 has been marked as a duplicate of this bug. ***
Comment 6 Stéphane Guillou (stragu) 2024-01-24 05:44:19 UTC
Still reproduced in recent trunk build:

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

Interesting that just the action of opening the dialog is enough to modify the database range.

Not reproduced in OOo 3.3.
With linux-64-releases bibisect repo, the earliest version affected is libreoffice-3.4.0rc1.
Possibly related to the filter and range work that Markus and Kohei did for LO 3.4, see https://wiki.documentfoundation.org/ReleaseNotes/3.4#Calc
Markus and Kohei, it's ancient commits but maybe you have an idea?