Bug 77929 - Fill series should detect the last cell to be filled, rather than fill to row #1648576
Summary: Fill series should detect the last cell to be filled, rather than fill to row...
Status: CLOSED DUPLICATE of bug 126577
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Calc (show other bugs)
Version:
(earliest affected)
3.6.0.4 release
Hardware: All All
: medium normal
Assignee: Not Assigned
URL:
Whiteboard:
Keywords: bibisected, regression
Depends on:
Blocks: AutoFill
  Show dependency treegraph
 
Reported: 2014-04-25 14:16 UTC by Kevin Suo
Modified: 2019-10-22 16:08 UTC (History)
5 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 Kevin Suo 2014-04-25 14:16:44 UTC
Steps:
1. New calc, select column A;
2. Edit - Fill - Series:  start value = 1; end value = 10; increment = 1. OK.

Current behaviour:
Calc fills to row #1648576, with "#NUM!" in cells below row #10.

Expected:
Only A1-A10 is filled.
Calc should detect that the  "end value = 10" so that the last cell to be filled is A10.
Comment 1 Jorendc 2014-04-28 16:07:02 UTC
Makes sense to me. Marking as NEW.

Kind regards,
Joren
Comment 2 Robinson Tryon (qubit) 2015-12-10 07:26:41 UTC Comment hidden (obsolete)
Comment 3 Gilward Kukel 2017-01-09 18:01:27 UTC
I think this is a bug (still present in LO 5.2.3.3), not an enhancement request. The bug always occurs when the series with an end value is shorter than the selected range.
It works in OpenOffice.
Comment 4 Kevin Suo 2017-01-11 09:36:22 UTC
Actually this is a regression. Move from ENHANCEMENT to NORMAL.
It works OK in libreoffice-3.3.0.

I will try to bibisect.
Comment 5 Kevin Suo 2017-01-11 09:49:18 UTC
Bibisected result using the releases repo:
 f829590e1c73663ee9463c2f54219794b88764b0 is the first bad commit
commit f829590e1c73663ee9463c2f54219794b88764b0
Author: Matthew Francis <mjay.francis@gmail.com>
Date:   Tue Apr 14 22:38:54 2015 +0800

    libreoffice-3.6.0.4
    
    LibO_3.6.0.4_Linux_x86-64_install-deb_en-US.tar.gz

:040000 040000 5cc32187bef50534e7ca1cd5fd011d61d36ef905 162535d6baaa7317ad36bcfd7ec854040612a7d7 M	opt

git bisect log:
# bad: [4f2186cd72652db35eebe5b1b9d3693723433b85] libreoffice-4.0.0.0.beta1
# good: [52afdea50650697a791234f22d2cf2147498b06e] libreoffice-3.3.0
git bisect start '4f2186cd72652db35eebe5b1b9d3693723433b85' 'libreoffice-3.3.0'
# good: [4a9bc438d62f90e8bf687683d854c3a044397505] libreoffice-3.5.3rc2
git bisect good 4a9bc438d62f90e8bf687683d854c3a044397505
# bad: [ac15b75361b54e9d29f2ed9e3203b731fd0a0d29] libreoffice-3.6.2.2
git bisect bad ac15b75361b54e9d29f2ed9e3203b731fd0a0d29
# good: [17cbb2ce32a1c75418e0cc10a2a146576a1eb7ee] libreoffice-3.5.6rc2
git bisect good 17cbb2ce32a1c75418e0cc10a2a146576a1eb7ee
# bad: [f829590e1c73663ee9463c2f54219794b88764b0] libreoffice-3.6.0.4
git bisect bad f829590e1c73663ee9463c2f54219794b88764b0
# good: [3b5b2e1244308952f7b6d19114e0f7200b0b8f0c] libreoffice-3.5.7rc2
git bisect good 3b5b2e1244308952f7b6d19114e0f7200b0b8f0c
# first bad commit: [f829590e1c73663ee9463c2f54219794b88764b0] libreoffice-3.6.0
Comment 6 Kevin Suo 2017-01-11 09:58:33 UTC
I am adding bug 48449 as see also because the commits which fixed that bug are the only commits that is between version 3.6.0.0 and 3.6.0.4 which are related to fill series.
Comment 7 Gilward Kukel 2017-01-13 05:57:51 UTC
I think the fault is the code

 else if (bOverflow)
 aCol[nCol].SetError(static_cast<SCROW>(nRow), formula::errIllegalFPOperation);

in the function ScTable::FillSeries
in the file sc\source\core\data\table4.cxx

https://cgit.freedesktop.org/libreoffice/core/tree/sc/source/core/data/table4.cxx#n1750
Comment 8 Xisco Faulí 2017-11-06 17:56:59 UTC
bisect is used when the commit introducing the regression has been identified, which is not the case here...
Comment 9 Buovjaga 2018-06-28 12:41:33 UTC
Bibisected on Linux with 43all repo, pointed to range https://cgit.freedesktop.org/libreoffice/core/log/?qt=range&q=250feedd8e50e5eb52682a194823567ba5287c60...ee7084c4f720c932df67c8ff033dab4d8d556179

There is a commit about FillSeries https://cgit.freedesktop.org/libreoffice/core/commit/?id=f61cbce529d039bb0e208e81cf66974cc4428420

commit f61cbce529d039bb0e208e81cf66974cc4428420 (patch)
tree 5bf31db12d5ff5ac4a799778bde4f4017bfbd5fb
parent a78a7ee9f7b1db56a6fa7e082f410db5a8db2f18 (diff)
make ScTable::FillSeries work correctly with hidden rows/columns

Adding Cc: to Markus Mohrhard
Comment 10 Kevin Suo 2019-05-15 10:43:53 UTC
Still reproducible on master
Version: 6.3.0.0.alpha1+
Build ID:d2fa9c0d657877c967e41fdd0091f81d1b7ca048
CPU 线程:4; 操作系统:Linux 4.18; UI 渲染:默认; VCL: gtk3; 
Locale: zh-CN (zh_CN.UTF-8); UI-Language: zh-CN
Calc: threaded
Comment 11 Eike Rathke 2019-10-22 16:08:26 UTC

*** This bug has been marked as a duplicate of bug 126577 ***