use german hunspell Create a new doc and paste this text into it <snip> Finanzwesen ... Plakat Es ist ein Creuz. <snap> Hit F7 to open spell checking dialog. Deactivate/Activate "Grammatik prüfen"/"Check grammar" flag. Hit Cancel to close dialog: Note: The last sentence has been removed!
Confirmed with LibO 3.4.2 RC1 on WinXP 32b [LibreOffice 3.4.2 OOO340m1 (Build:201)] Each sentence with the currently proved (misspelled) word will be deleted, if the box 'Check grammar' has been activated/deactivated during 'Spelling and Grammar' (F7). (Regardless of closing the 'Spelling and Grammar' dialogue.) The deleted sentence can be restored by 'Undo'(Ctrl+Z). Tested with bundled dictionaries German (Germany), French (France), and English (USA). Tested with/without LanguageTool 1.4. Caolán, could you please have a look at that?
@andre.pietsch Thanks for the bug report. On which operating system did you find it?
Created attachment 49358 [details] test document
Also reproducible (on WinXP 32b) with, e.g.: OpenOffice.org 3.3.0 OOO330m20 (Build:9567) Not reproducible with, e.g.: OpenOffice.org 3.2.1 OOO320m18 (Build:9502) Not only a LibreOffice bug.
Grammar checking is not related to hunspell FWIW
I don't see this. Are you sure it happens without language tool installed, which is the configuration I tried.
Maybe this is a windows only thing. and/or maybe its keyboard focus even. Does it happens when selecting/deselecting options->"check grammar as you type" when using the mouse ? Is that the only option that does it, or do the other make a difference.
Reproducible with LibO 3.4.3 RC1 (on WinXP) [LibreOffice 3.4.3 OOO340m1 (Build:301)]. Extension LanguageTool not installed. Test 'fdo#39348_sample.odt' with text part en-US: Screenshot 1: 'step_1_en-US.png' Initial situation <F7>. Starting with "He heard quiet stepps behind him. [...]". Option '☐ Check grammar' is disabled (or vice versa). Screnshot 2: 'step_2_en-US.png' If the option '☑ Check grammar' is now enabled (or vice versa) with a mouse click, then the sentence "He heard quiet stepps behind him." will be deleted. 'Ctrl+Z' (Undo 'Overwrite: $1') will restore this sentence.
Created attachment 50383 [details] Screenshot 1: 'step_1_en-US.png'
Created attachment 50384 [details] Screenshot 2: 'step_2_en-US.png'
hmm, how come I don't *have* that checkbox.
This option seems to be a part of the Grammar Checking Framework (GCF). It will appear for the first time (UI), when a grammar checker (extension) has been installed. Then it will remain, even if the grammar checker has been uninstalled. [ Tried with: - Lightproof grammar checker development framework http://extensions.services.openoffice.org/en/project/lightproof - LanguageTool http://www.languagetool.org/ ]
gotcha. I can reproduce this now.
Fixed as http://cgit.freedesktop.org/libreoffice/core/commit/?id=63eef1c1cf203aa75093b479a1e8dd24593546e7 for master (i.e. >= 3.5) Toggling checkbox doesn't delete entire sentence anymore. I wonder if we want this backported for a 3.4.X.
Verified with LibO Master - LibO-dev 3.5.0 Build ID: 8cc839d-3dca5fd-4525197 [master~2011-09-12_16.09.34_LibO-Dev_OOO350m1_Win_x86_install_en-US.exe]. Thanks, that works fine. :)
Since all new unconfirmed bugs start in state UNCONFIRMED now and old unconfirmed bugs were moved to NEEDINFO with a explanatory comment, all bugs promoted above those bug states to NEW and later are automatically confirmed making the CONFIRMED whiteboard status redundant. Thus it will be removed.