Description: When a graph in Calc includes a trend line using MA (variant: central), if the data is deleted or cut, the program crashes. Steps to Reproduce: 1. In a blank Calc sheet, create a range of data , say 1,2,3,4 in cells A1:A4 2. Select the data and insert a Graph (column or line type). 3. Insert a trend line, type MA 2 , variant central 4. Click outside the graph, select the data range , and cut it (Ctrl-X) Actual Results: Program crashes. And the recovery attempts fail. Expected Results: Should not crash. Reproducible: Always User Profile Reset: Yes Additional Info: Version: 7.2.2.2 (x64) / LibreOffice Community Build ID: 02b2acce88a210515b4a5bb2e46cbfb63fe97d56 CPU threads: 6; OS: Windows 10.0 Build 19043; UI render: Skia/Raster; VCL: win Locale: es-AR (es_AR); UI: en-US Calc: CL
Reproducible in: Version: 7.4.0.0.alpha0+ / LibreOffice Community Build ID: d272bf4f8f3a083b8c37f7b10f89cd2bf76b7d21 CPU threads: 8; OS: Linux 5.11; UI render: default; VCL: gtk3 Locale: en-US (en_US.UTF-8); UI: en-US Calc: threaded
Caolán McNamara committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/13a2ca25e4b16a6ac310c03ec9b543c774a0df6c Resolves: tdf#146068 don't crash when MA(central) lacks data It will be available in 7.6.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.
done in trunk, backport to 7-5 and 7-4 in gerrit
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-4": https://git.libreoffice.org/core/commit/bdd0cd702f37ff979b55a955905f9beb28f82ba1 Resolves: tdf#146068 don't crash when MA(central) lacks data It will be available in 7.4.7. 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.
Caolán McNamara committed a patch related to this issue. It has been pushed to "libreoffice-7-5": https://git.libreoffice.org/core/commit/fde5e93fb09d079cbd145a08469e56339f58c4f9 Resolves: tdf#146068 don't crash when MA(central) lacks data It will be available in 7.5.4. 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.