21 lines
776 B
Diff
21 lines
776 B
Diff
--- abiword/trunk/plugins/grammar/linkgrammarwrap/LinkGrammarWrap.cpp 2014/06/30 13:48:28 34627
|
|
+++ abiword/trunk/plugins/grammar/linkgrammarwrap/LinkGrammarWrap.cpp 2015/09/09 14:14:20 35098
|
|
@@ -39,6 +39,7 @@
|
|
*/
|
|
/********************************************************************************/
|
|
|
|
+#include "config.h"
|
|
#include "xap_App.h"
|
|
#include "ut_locale.h"
|
|
#include "ut_string_class.h"
|
|
@@ -87,7 +88,9 @@
|
|
parse_options_set_min_null_count(m_Opts, 0);
|
|
parse_options_set_max_null_count(m_Opts, 0);
|
|
parse_options_set_islands_ok(m_Opts, 0);
|
|
+#ifndef HAVE_LINK_GRAMMAR_51
|
|
parse_options_set_panic_mode(m_Opts, TRUE);
|
|
+#endif
|
|
parse_options_reset_resources(m_Opts);
|
|
UT_sint32 num_linkages = sentence_parse(sent, m_Opts);
|
|
bool res = (num_linkages >= 1);
|