Bug 117061 - Editing : Formulas broken when dragging a row in a spreadsheet containing a scenario
Summary: Editing : Formulas broken when dragging a row in a spreadsheet containing a s...
Status: NEW
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: Scenarios
  Show dependency treegraph
 
Reported: 2018-04-17 10:16 UTC by Philippe Hemmel
Modified: 2023-04-24 04:12 UTC (History)
4 users (show)

See Also:
Crash report or crash signature:


Attachments
sample speadsheet with scenarios : problem (13.12 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-04-17 10:16 UTC, Philippe Hemmel
Details
sample spreadsheet without scenario : no problem (12.76 KB, application/vnd.oasis.opendocument.spreadsheet)
2018-04-17 10:18 UTC, Philippe Hemmel
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Philippe Hemmel 2018-04-17 10:16:25 UTC
Created attachment 141420 [details]
sample speadsheet with scenarios : problem

## Steps to reproduce

Create a spreadsheet with two sheets : 
In the first sheet insert some values, sum and two scenarios
In the second sheet insert some values and sums : 

See the attached file "test drag with scenario.ods"

Check the formula in sheet2.B4 : =SUM(B9:B13)
Check the formula in sheet1.B4 : =SUM(B5:B6)
and sheet1.B7 : =SUM(B8:B9)

In the second sheet, drag the row 5 between 6 and 7, with alt and ctrl pressed, in order to copy and insert the 4 row between the formula in sheet2.B4 and the cells used in that formula.

## Actual behaviour

The row 5 isn't inserted between the rows 6 and 7 but replace the row 7.

Check the formula in sheet2.B4 : =SUM(B10:B14). It isn't correct anymore : the references have changed but the cells haven't been shifted because no line has been inserted.

Check the formula in sheet1.B4 : =SUM(B5:B6). Ok
Sheet1.B7 : =SUM(B9:B10). Incorrect : the references have changed but no cells have been shifted in this sheet.

## Expected behaviour

The row 5 should have been inserted between the rows 6 and 7.
The cells used in the formula in sheet2.B4 should have been shifted (that's ok)
The formula in sheet1.B7 should not have changed.

Check the "test drag without scenario.ods" file: it's the same file without scenario. Apply the same changes on that file: the results are corrects.

## Desktop configuration

**Operating system:** Linux 4.13 (Kubuntu 17.10 Artful 64 bits)

Plasma 5.12.3 (kubuntu-ppa/backports)

**LibreOffice version:** 

Version: 5.4.6.2
Build ID: 1:5.4.6-0ubuntu0.17.10.1
CPU threads: 4; OS: Linux 4.13; UI render: default; VCL: kde4; 
Locale: fr-FR (fr_FR.UTF-8); Calc: single
Comment 1 Philippe Hemmel 2018-04-17 10:18:04 UTC
Created attachment 141421 [details]
sample spreadsheet without scenario : no problem
Comment 2 m_a_riosv 2018-04-17 14:40:42 UTC
Repro
Comment 3 Xisco Faulí 2018-04-18 15:49:22 UTC
Reproduced back to

LibreOffice 3.3.0 
OOO330m19 (Build:6)
tag libreoffice-3.3.0.4

@Eike, one for you ?
Comment 4 QA Administrators 2019-04-19 03:01:18 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2021-04-19 03:39:27 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2023-04-20 03:31:08 UTC
Dear Philippe Hemmel,

To make sure we're focusing on the bugs that affect our users today, LibreOffice QA is asking bug reporters and confirmers to retest open, confirmed bugs which have not been touched for over a year.

There have been thousands of bug fixes and commits since anyone checked on this bug report. During that time, it's possible that the bug has been fixed, or the details of the problem have changed. We'd really appreciate your help in getting confirmation that the bug is still present.

If you have time, please do the following:

Test to see if the bug is still present with the latest version of LibreOffice from https://www.libreoffice.org/download/

If the bug is present, please leave a comment that includes the information from Help - About LibreOffice.
 
If the bug is NOT present, please set the bug's Status field to RESOLVED-WORKSFORME and leave a comment that includes the information from Help - About LibreOffice.

Please DO NOT

Update the version field
Reply via email (please reply directly on the bug tracker)
Set the bug's Status field to RESOLVED - FIXED (this status has a particular meaning that is not 
appropriate in this case)


If you want to do more to help you can test to see if your issue is a REGRESSION. To do so:
1. Download and install oldest version of LibreOffice (usually 3.3 unless your bug pertains to a feature added after 3.3) from https://downloadarchive.documentfoundation.org/libreoffice/old/

2. Test your bug
3. Leave a comment with your results.
4a. If the bug was present with 3.3 - set version to 'inherited from OOo';
4b. If the bug was not present in 3.3 - add 'regression' to keyword


Feel free to come ask questions or to say hello in our QA chat: https://web.libera.chat/?settings=#libreoffice-qa

Thank you for helping us make LibreOffice even better for everyone!

Warm Regards,
QA Team

MassPing-UntouchedBug