Description: When using the Unformatted text paste option in Calc the Skip empty cells option does not seem to make a difference whether its enabled or not Steps to Reproduce: 1. Open attachment # from bug # (ide jön az előző bugból a melléklet és a bug száma) 2. Copy the range B1:B4 and paste it while standing in A1 using the Paste button -> Unformatted text option 3. The Skip empty cells option in the Text Import dialog is turned on by default. Its tooltip says the sources empty cells should not overwrite the target when enabled. 4. Try pasting again with Skip empty cells turned off. Actual Results: Whether Skip empty cells is enabled or not, the empty cell in B3 does not overwrite the content in A3. Expected Results: When Skip empty cells is disabled the content in A3 should be cleared. Reproducible: Always User Profile Reset: No Additional Info: LibreOffice details: Verzió: 6.4.0.0.beta1 (x86) Build az.: 4d7e5b0c40ed843384704eca3ce21981d4e98920 CPU szálak: 4; OS: Windows 6.3 Build 9600; Felületmegjelenítés: alapértelmezett; VCL: win; Területi beállítások: hu-HU (hu_HU); Felület nyelve: hu-HU Calc: CL
Created attachment 156851 [details] Example file from Calc
Created attachment 156852 [details] The Text Import dialog before pasting
Created attachment 156853 [details] The file after pasting with A3 not becoming empty
Bibisected using bibisect-win32-6.1 to: URL: https://cgit.freedesktop.org/libreoffice/core/commit/?id=3bd4957191f12457c17404645bab0794639c95f8 author Laurent BP <laurent.balland-poirier@laposte.net> 2017-12-17 17:14:55 +0100 committer Eike Rathke <erack@redhat.com> 2017-12-21 23:16:23 +0100 tdf#113979 Add option to Skip empty cells
*** Bug 129699 has been marked as a duplicate of this bug. ***
Repro. Version: 6.5.0.0.alpha0+ (x64) Build ID: 42a1a1c6b91907f81e15066ffab219411f18c4db CPU threads: 4; OS: Windows 10.0 Build 19041; UI render: GL; VCL: win; Locale: es-ES (es_ES); UI-Language: en-US Calc: CL
*** Bug 129752 has been marked as a duplicate of this bug. ***
I do reproduce. I can also paste with and without skipping in the same time. 1. Copy data: a;b;c d;; g;h;i 2. Paste Unformatted text without option "Skip empty cell" (with semi colon as separator) Actual behavior: Cell below "b" is correctly empty (it was erased) Cell below "c" is skipped and its content is preserved Expected behavior: Cells below "b" and "c" should be erased.
The bug seems older, as for versions previous 6.1 there was no option, and behavior was the same as without checking "Skip empty cells". I reproduce with Version: 6.0.2.1 (x64) Build ID: f7f06a8f319e4b62f9bc5095aa112a65d2f3ac89 CPU threads: 2; OS: Windows 6.1; UI render: default; Locale: fr-FR (fr_FR); Calc: CL till version 5.3 In Version: 5.2.7.2 (x64) Build ID: 2b7f1e640c46ceb28adf43ee075a6e8b8439ed10 Threads CPU : 2; Version de l'OS :Windows 6.1; UI Render : par défaut; Locale : fr-FR (fr_FR); Calc: CL the behavior is similar as if "Skip empty" option is on.
I do reproduce on: Version: 6.4.6.2 (x64) Build ID: 0ce51a4fd21bff07a5c061082cc82c5ed232f115 CPU threads: 8; OS: Windows 10.0 Build 17763; UI render: default; VCL: win; Locale: it-IT (it_IT); UI-Language: en-US Calc: threaded I had a similar issue in production, so I tried to isolate the problem. In my experience, the paste unformatted text command works properly when the "skip empty cells" is selected. On the other side, when the "skip empty cells" is NOT selected, the bug arises only when the source range contains an empty value at the END of a row. Such empty value at the end of the source row does not overwrite the corresponding destination cell in CALC. . Initial CALC destination range (the one to overwrite) a | B c | d . Source comma-separated range 1, 3,4 Actual result of paste special unformatted text w/o "skip empty cells" 1 | b 3 | 4 Expected result: 1 | 3 | 4 I think that the steps to reproduce initially provided by NISZ LibreOffice Team could fit in this new explanation because the empty cell B3 in the source column-range B1:B4 might be considered as an empty cell at the end of the row 3.
Created attachment 166348 [details] step to reproduce with an empty cell at the end of a source row step to reproduce with an empty cell at the end of a source row
Dear NISZ LibreOffice Team, 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
The bug is still present in the following version: Version: 7.4.3.2 (x64) / LibreOffice Community Build ID: 1048a8393ae2eeec98dff31b5c133c5f1d08b890 CPU threads: 4; OS: Windows 10.0 Build 19044; UI render: Skia/Raster; VCL: win Locale: it-IT (it_IT); UI: it-IT Calc: threaded
Bug reproduced with Version: 7.6.3.1 (X86_64) / LibreOffice Community Build ID: c4af5b1259bceea6e979e6fe2435dbee7a5a87c2 CPU threads: 8; OS: Windows 10.0 Build 19045; UI render: Skia/Raster; VCL: win Locale: fr-FR (fr_FR); UI: fr-FR Calc: CL threaded The unchecked option does not work only in the *last column* Pasting x1,, ,x2, ,,x3 on A1,B1,C1 A2,B2,C2 A3,B3,C3 if skip empty cells is unchecked, results in x1,,C1 ,x2,C2 ,,x3
*** Bug 158297 has been marked as a duplicate of this bug. ***
(In reply to Laurent Balland from comment #15) > *** Bug 158297 has been marked as a duplicate of this bug. *** FWIW, from bug 158297, the behavior is seen since LO 5.3.0.3, but different in LO 5.2. The reasons might be different in LO 5.3 and in 5.4 in comparison to LO 6.1 (the Version field ATM in this bug 129701).
This bug should have a higher priority IMO. The user has no clue nor way to know that the resulting data is incorrect, which is the same as to say that there is DATA LOSS! I am tempted to add dataLoss to the Keywords field of this report.
The bug occurs only with columns separated by separators and NOT with fixed width. If I correctly understood: In bool ScImportExport::ExtText2Doc( SvStream& rStrm ) [1], the while loop for the columns [2] ends when there is nothing to paste, even if it is the last column, so the last empty column is not treated if it is empty. And if user pastes only 1 column, empty cells are not treated. [1] https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/impex.cxx?r=2b4094195&fi=ExtText2Doc#ExtText2Doc [2] https://opengrok.libreoffice.org/xref/core/sc/source/ui/docshell/impex.cxx?r=2b4094195&fi=ExtText2Doc#1685
Laurent Balland committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/e66ffda7c7f1e78dbca082ff7549ded121dc7356 tdf#129701 Skip empty cell: treat last column It will be available in 24.8.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.
Laurent Balland committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/60e0ebe633b1dee8bb2a66b9d133f5303749d8d5 tdf#129701 Skip empty cell: treat last column It will be available in 24.2.2. 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.
Laurent Balland committed a patch related to this issue. It has been pushed to "master": https://git.libreoffice.org/core/commit/47187acee758680cda8086b6e295ef7beea3491b tdf#129701 Follow-up of previous change It will be available in 24.8.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.
Laurent Balland committed a patch related to this issue. It has been pushed to "libreoffice-7-6": https://git.libreoffice.org/core/commit/ed0165f6cbd1f3f9e47be26fe5d60c29eb946030 tdf#129701 Skip empty cell: treat last column It will be available in 7.6.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.
Laurent Balland committed a patch related to this issue. It has been pushed to "libreoffice-24-2": https://git.libreoffice.org/core/commit/637312e2aa682ca11543a421a8de0bbbe72bf86b tdf#129701 Follow-up of previous change It will be available in 24.2.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.
Laurent Balland committed a patch related to this issue. It has been pushed to "libreoffice-24-2-3": https://git.libreoffice.org/core/commit/1d00b945c25c5b9df6553c0c89ef63749ac0a419 tdf#129701 Follow-up of previous change It will be available in 24.2.3. 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.