fix aspell version of term explorer

This commit is contained in:
dockes 2006-11-04 17:09:08 +00:00
parent 1440af3ade
commit 0cf3b35435
2 changed files with 7 additions and 7 deletions

View File

@ -8,8 +8,8 @@
<rect>
<x>0</x>
<y>0</y>
<width>796</width>
<height>351</height>
<width>-1</width>
<height>-1</height>
</rect>
</property>
<property name="sizePolicy">
@ -22,8 +22,8 @@
</property>
<property name="minimumSize">
<size>
<width>130</width>
<height>30</height>
<width>0</width>
<height>0</height>
</size>
</property>
<property name="caption">

View File

@ -1,5 +1,5 @@
#ifndef lint
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.3 2006-10-30 12:59:44 dockes Exp $ (C) 2005 J.F.Dockes";
static char rcsid[] = "@(#$Id: spell_w.cpp,v 1.4 2006-11-04 17:09:08 dockes Exp $ (C) 2005 J.F.Dockes";
#endif
/*
* This program is free software; you can redistribute it and/or modify
@ -68,6 +68,7 @@ void SpellW::init()
/* Expand term according to current mode */
void SpellW::doExpand()
{
suggsTE->clear();
if (baseWordLE->text().isEmpty())
return;
@ -93,6 +94,7 @@ void SpellW::doExpand()
break;
#ifdef RCL_USE_ASPELL
case 2: {
LOGDEB(("SpellW::doExpand: aspelling\n"));
if (!aspell) {
LOGDEB(("SpellW::doExpand: aspell init error\n"));
return;
@ -101,12 +103,10 @@ void SpellW::doExpand()
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
return;
}
return;
}
#endif
}
suggsTE->clear();
if (suggs.empty()) {
suggsTE->append(tr("No spelling expansion found"));
} else {