[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kde-commits
Subject:    kdenonbeta/kspell/src
From:       Laurent Montel <montel () kde ! org>
Date:       2004-02-02 20:32:51
Message-ID: 20040202203251.E0A8F993A () office ! kde ! org
[Download RAW message or body]

CVS commit by mlaurent: 

Fix crash.
I don't have en_US dictionary on my computer


  M +1 -1      test.cpp   1.4


--- kdenonbeta/kspell/src/test.cpp  #1.3:1.4
@@ -43,5 +43,5 @@ int main( int argc, char** argv )
 
     for ( QStringList::Iterator itr = words.begin(); itr != words.end(); ++itr ) {
-        if ( !dict->check( *itr ) ) {
+        if ( dict && !dict->check( *itr ) ) {
             kdDebug()<<"Word " << *itr <<" is misspelled"<<endl;
             QStringList sug = dict->suggest( *itr );


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic