Bug 80358 - The spell-checker is mixed up when correcting in between two consecutive wrong words
Summary: The spell-checker is mixed up when correcting in between two consecutive wron...
Status: RESOLVED WORKSFORME
Alias: None
Product: LibreOffice
Classification: Unclassified
Component: Linguistic (show other bugs)
Version:
(earliest affected)
4.3.0.1 rc
Hardware: x86 (IA32) Linux (All)
: medium minor
Assignee: Not Assigned
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: Spell-Checking
  Show dependency treegraph
 
Reported: 2014-06-22 18:10 UTC by Koehler
Modified: 2025-07-04 05:12 UTC (History)
3 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 Koehler 2014-06-22 18:10:11 UTC
prerequisites for test:
Any text with two consecutive misspelled words.

Steps to reproduce:
1. Take a paragraph with 2 or more consecutive misspelled words underlined red by the spelling feature like this one.

2. type <F7> or "extras/spelling+grammar"

Assume two consecutive words are marked as wrong (underlined by red waves) by the spelling check.

3. The 1st wrong word will be displayed in the correction window in red letters. The user might change the spelling manually or select a proposed word from the list or ignore it (type or press button change or ignore). Then the 2nd wrong word is displayed in red letters. So far - so good. If you now add manually a new leading letter to the 2nd word, the 1st word will be displayed in red again. Typing "ignore" will reverse the previously made correction and the 2nd word shows up in red letters again EXCEPT the first leading letter you added before (it occupies the position where the space has been before).

Apparently the string limits are not properly set and might include the space in between the words.

Operating System: GNU/Linux Debian wheezy

Corollary:
Loss of hard formats in the whole paragraph when typing in a non-red area of spell-checker window.

Typing anything outside the red letters will trigger LO to jump to the beginning of the paragraph and start over with the correction process in that paragraph. All misspelled words previously ignored will show up in red again.
But the main problem is, that the whole paragraph lose all of its hard formats (bold, hidden etc.).
Comment 1 Tim Lloyd 2014-06-24 10:33:22 UTC
confirmed Fedora 20. writer 4.2.5.2 & XP writer 4.2.0.4
Comment 2 QA Administrators 2015-07-18 17:44:01 UTC Comment hidden (obsolete)
Comment 3 Buovjaga 2015-10-23 07:59:58 UTC
Still repro.

Win 7 Pro 64-bit, Version: 5.0.2.2 (x64)
Build ID: 37b43f919e4de5eeaca9b9755ed688758a8251fe
Locale: fi-FI (fi_FI)
Comment 4 QA Administrators 2016-11-08 11:14:20 UTC Comment hidden (obsolete)
Comment 5 QA Administrators 2019-12-03 14:16:47 UTC Comment hidden (obsolete)
Comment 6 QA Administrators 2021-12-03 04:31:21 UTC Comment hidden (obsolete)
Comment 7 QA Administrators 2023-12-04 03:16:19 UTC Comment hidden (obsolete, spam)
Comment 8 Justin L 2025-07-03 17:25:43 UTC
This sounds like another bug that was marked as fixed prior to LO 7.0.

I can't reproduce using these steps in 7.5 or master. (I tried adding a character in front of the second word both in the spell check dialog's line preview, and in the document itself.)
Comment 9 Shantanu 2025-07-04 05:12:04 UTC
Reproduced:
Version: 25.2.3.2 (x86) / LibreOffice Community
Build ID: bbb074479178df812d175f709636b368952c2ce3
CPU threads: 4; OS: Windows 10 X86_64 (10.0 build 19045); UI render: Skia/Raster; VCL: win
Locale: en-US (en_IN); UI: en-US
Calc: threaded
_____

Instead of "math correct" type "ath orrect" and start spell check (F7) in a new document. Select "math" in suggestions and click on "Correct" button. Now instead of selecting "correct" from the suggestions list, type "c" before red colored "orrect" and you will see "math" in red. (word "math" is correct and should never be in red color << bug) Now press "correct" or "ignore" button twice and you are going to get the wrong results. You should press "correct" followed by "ignore" button to get the expected result "math correct".
_____

While I am able to reproduce the issue, this does not reflect the typical way in which most users interact with the spell check functionality. Therefore, I would not classify this as a bug.