summaryrefslogtreecommitdiff
path: root/hunspell
diff options
context:
space:
mode:
authorLászló Németh <nemeth@numbertext.org>2012-09-18 13:31:51 +0200
committerMiklos Vajna <vmiklos@suse.cz>2012-09-19 08:54:46 +0000
commit88303a8303d35dd927c051811af869568dd7c838 (patch)
tree98d1ee10cf791d1e7d975fb88fd569e14b56fc40 /hunspell
parent610f6a95a3a197ae5a39e7b699961f29ced44e63 (diff)
fdo#55045 fix broken Hungarian grammar checking options
Change-Id: I488dda6f456e841f41c4623634d2cb597e3a3c0a Reviewed-on: https://gerrit.libreoffice.org/639 Reviewed-by: Miklos Vajna <vmiklos@suse.cz> Tested-by: Miklos Vajna <vmiklos@suse.cz>
Diffstat (limited to 'hunspell')
-rw-r--r--hunspell/hunspell-1.3.2-compound.patch11
-rw-r--r--hunspell/makefile.mk3
2 files changed, 13 insertions, 1 deletions
diff --git a/hunspell/hunspell-1.3.2-compound.patch b/hunspell/hunspell-1.3.2-compound.patch
new file mode 100644
index 000000000000..3629add70ca5
--- /dev/null
+++ b/hunspell/hunspell-1.3.2-compound.patch
@@ -0,0 +1,11 @@
+--- misc/hunspell-1.3.2/src/hunspell/affixmgr.cxx 2010-02-27 12:59:53.000000000 +0100
++++ misc/build/hunspell-1.3.2/src/hunspell/affixmgr.cxx 2012-09-18 11:50:04.535803282 +0200
+@@ -2125,7 +2125,7 @@
+ }
+
+ if (!rv) {
+- if (onlycpdrule) break;
++ if (onlycpdrule && strlen(*result) > MAXLNLEN/10) break;
+ if (compoundflag &&
+ !(rv = prefix_check(st, i, hu_mov_rule ? IN_CPD_OTHER : IN_CPD_BEGIN, compoundflag))) {
+ if (((rv = suffix_check(st, i, 0, NULL, NULL, 0, NULL,
diff --git a/hunspell/makefile.mk b/hunspell/makefile.mk
index 156cbbed2908..16721d763f2b 100644
--- a/hunspell/makefile.mk
+++ b/hunspell/makefile.mk
@@ -51,7 +51,8 @@ PATCH_FILES=\
hunspell-1.3.2-overflow.patch \
hunspell-android.patch \
hunspell-1.3.2-nullptr.patch \
- hunspell-1.3.2-literal.patch
+ hunspell-1.3.2-literal.patch \
+ hunspell-1.3.2-compound.patch
.IF "$(GUI)"=="UNX"