bump product version to 6.1.0.2
[LibreOffice.git] / external / hunspell / 0001-FORBIDDENWORD-precedes-BREAK.patch
blob6cad45d8a8bfec6e5e06011b62fcbcfb81c3e1c3
1 From 39b785a6b03b35cc8a27f43f6005dcaa432694e1 Mon Sep 17 00:00:00 2001
2 From: =?UTF-8?q?L=C3=A1szl=C3=B3=20N=C3=A9meth?= <nemeth@numbertext.org>
3 Date: Mon, 9 Oct 2017 13:02:39 +0200
4 Subject: [PATCH] FORBIDDENWORD precedes BREAK
6 Now it's possible to forbid compound forms recognized by
7 BREAK word breaking.
8 ---
9 src/hunspell/hunspell.cxx | 2 +-
10 1 file changed, 1 insertion(+), 1 deletion(-)
12 diff --git a/src/hunspell/hunspell.cxx b/src/hunspell/hunspell.cxx
13 index 5c98f8a..3fd0d16 100644
14 --- a/src/hunspell/hunspell.cxx
15 +++ b/src/hunspell/hunspell.cxx
16 @@ -633,7 +633,7 @@ bool HunspellImpl::spell(const std::string& word, int* info, std::string* root)
19 // recursive breaking at break points
20 - if (!wordbreak.empty()) {
21 + if (!wordbreak.empty() && !(*info & SPELL_FORBIDDEN)) {
23 int nbr = 0;
24 wl = scw.size();
25 --
26 1.9.1