]> Pileus Git - ~andy/sunrise/blob - app-office/openoffice-infra/files/3.0.1/gentoo-hunspell.diff
app-office/openoffice-infra: Version bump to 3.0.1 for openoffice-infra, and some...
[~andy/sunrise] / app-office / openoffice-infra / files / 3.0.1 / gentoo-hunspell.diff
1 ? unxlngx6.pro
2 Index: source/lingutil/lingutil.cxx
3 ===================================================================
4 RCS file: /cvs/whiteboard/lingucomponent/source/lingutil/lingutil.cxx,v
5 retrieving revision 1.4
6 diff -u -r1.4 lingutil.cxx
7 --- lingucomponent/source/lingutil/lingutil.cxx 13 Jun 2008 14:02:52 -0000      1.4
8 +++ lingucomponent/source/lingutil/lingutil.cxx 24 Oct 2008 15:01:43 -0000
9 @@ -322,11 +322,15 @@
10                 {
11                         LanguageType nLang = MsLangId::convertIsoStringToLanguage( aIt2->aLocaleNames[0] );
12  
13 +            if (nLang == LANGUAGE_DONTKNOW || nLang == LANGUAGE_NONE)
14 +            {
15 +                DBG_ERROR( "old style dictionary with invalid language found!" );
16 +                continue;
17 +            }
18 +
19                         // language not yet added?
20                         if (aNewStyleLanguages.count( nLang ) == 0)
21 -                       {
22                                 rNewStyleDics.push_back( *aIt2 );
23 -                       }
24                 }
25                 else
26                 {