Created attachment 61191 [details]
Having two errors that partly overlap confuses writer, it will show the same error message for both. That's because only the first error is considered, the end position is ignored. The attached patch seems to fix this.
If you want to reproduce: download and install http://www.languagetool.org/download/test/LanguageTool-20120507-snapshot-overlapping-bug-demo.oxt, create a German document with this text: "Die falle schnappte zu." You will see two underlines (looks like one because of the overlap): right click on "falle", then one "schnappte" -> you will get the same error texts and suggestions, although there are two errors. With the patch, the error does not occur anymore.
Could you please send it to email@example.com and mention this bug? We love discussing the patch there. Thanks! :-)
Yep - as Korrawit says the ML is the place; with [PATCH] in the subject :-)
Daniel Naber committed a patch related to this issue.
It has been pushed to "master":
fdo#49605: SwEditShell: fix handling of overlapping grammar errors
Shall we mark this bug as fixed then?