Created attachment 77604[details]
fix for the problem - I agree to publish this under the Apache License 2.0 or later
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 on "schnappte" -> you will get the same error texts and suggestions,
although there are two errors. With the patch, the error does not occur
anymore.
(for reference, this bug also exists in LO at https://bugs.freedesktop.org/show_bug.cgi?id=49605)

I'm adding this comment to all open issues with Issue Type == PATCH. We have 220 such issues, many of them quite old. I apologize for that.
We need your help in prioritizing which patches should be integrated into our next release, Apache OpenOffice 4.0.
If you have submitted a patch and think it is applicable for AOO 4.0, please respond with a comment to let us know.
On the other hand, if the patch is no longer relevant, please let us know that as well.
If you have any general questions or want to discuss this further, please send a note to our dev mailing list: dev@openoffice.apache.org
Thanks!
-Rob

Created attachment 80504[details]
Bug doc
Right-clicking in falle should display a grammar context menu, right-clicking in schnappte should display a different grammar context menu.
Currently, right-clicking in schnappte display a common context menu, not the grammar context menu.

This is Apache OpenOffice (AOO) Bugzilla: the Apache OpenOffice (AOO) bug system. In case
of problems with the functioning of Apache OpenOffice (AOO) Bugzilla, please contact
aoo-bugzilla-admin@apache.org.
Please Note: this e-mail address is only for reporting problems
with Apache OpenOffice (AOO) Bugzilla. Mail about any other subject will be silently
ignored.