]> git.pld-linux.org Git - packages/abiword.git/blame - abiword-link-grammar-5-second.patch
- release 7 (by relup.sh)
[packages/abiword.git] / abiword-link-grammar-5-second.patch
CommitLineData
988d24be
JR
1--- abiword-3.0.0/plugins/grammar/linkgrammarwrap/LinkGrammarWrap.cpp.orig 2014-06-30 08:21:30.000000000 -0500
2+++ abiword-3.0.0/plugins/grammar/linkgrammarwrap/LinkGrammarWrap.cpp 2014-06-30 08:27:01.000000000 -0500
3@@ -220,6 +220,7 @@ bool LinkGrammarWrap::parseSentence(Piec
4 pErr = NULL;
5 }
6
7+#ifdef DEAD_DEBUG_CODE
8 // for(i=0; i< pT->m_vecGrammarErrors.getItemCount(); i++)
9 // {
10 // pErr = pT->m_vecGrammarErrors.getNthItem(i);
11@@ -227,15 +228,10 @@ bool LinkGrammarWrap::parseSentence(Piec
12 // }
13 UT_UTF8String sErr = linkage_get_violation_name(linkage);
14 // UT_DEBUGMSG(("Top Level error message |%s|\n",sErr.utf8_str()));
15- UT_sint32 count = linkage_get_num_sublinkages(linkage);
16 //
17 // Find linkages with violations
18 //
19- for(i=0; i<count;i++)
20 {
21- UT_sint32 iok = linkage_set_current_sublinkage(linkage, i);
22- if(iok == 0)
23- continue;
24 UT_sint32 j = 0;
25 UT_sint32 iNum = linkage_get_num_links(linkage);
26 for(j=0;j< iNum;j++)
27@@ -252,6 +248,8 @@ bool LinkGrammarWrap::parseSentence(Piec
28 }
29 }
30 linkage_delete(linkage);
31+#endif // DEAD_DEBUG_CODE
32+
33 for(i=0; i< vecMapOfWords.getItemCount(); i++)
34 {
35 AbiGrammarError * p = vecMapOfWords.getNthItem(i);
This page took 0.269593 seconds and 4 git commands to generate.