fix aspell version of term explorer
This commit is contained in:
parent
1440af3ade
commit
0cf3b35435
@ -8,8 +8,8 @@
|
|||||||
<rect>
|
<rect>
|
||||||
<x>0</x>
|
<x>0</x>
|
||||||
<y>0</y>
|
<y>0</y>
|
||||||
<width>796</width>
|
<width>-1</width>
|
||||||
<height>351</height>
|
<height>-1</height>
|
||||||
</rect>
|
</rect>
|
||||||
</property>
|
</property>
|
||||||
<property name="sizePolicy">
|
<property name="sizePolicy">
|
||||||
@ -22,8 +22,8 @@
|
|||||||
</property>
|
</property>
|
||||||
<property name="minimumSize">
|
<property name="minimumSize">
|
||||||
<size>
|
<size>
|
||||||
<width>130</width>
|
<width>0</width>
|
||||||
<height>30</height>
|
<height>0</height>
|
||||||
</size>
|
</size>
|
||||||
</property>
|
</property>
|
||||||
<property name="caption">
|
<property name="caption">
|
||||||
|
|||||||
@ -1,5 +1,5 @@
|
|||||||
#ifndef lint
|
#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
|
#endif
|
||||||
/*
|
/*
|
||||||
* This program is free software; you can redistribute it and/or modify
|
* 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 */
|
/* Expand term according to current mode */
|
||||||
void SpellW::doExpand()
|
void SpellW::doExpand()
|
||||||
{
|
{
|
||||||
|
suggsTE->clear();
|
||||||
if (baseWordLE->text().isEmpty())
|
if (baseWordLE->text().isEmpty())
|
||||||
return;
|
return;
|
||||||
|
|
||||||
@ -93,6 +94,7 @@ void SpellW::doExpand()
|
|||||||
break;
|
break;
|
||||||
#ifdef RCL_USE_ASPELL
|
#ifdef RCL_USE_ASPELL
|
||||||
case 2: {
|
case 2: {
|
||||||
|
LOGDEB(("SpellW::doExpand: aspelling\n"));
|
||||||
if (!aspell) {
|
if (!aspell) {
|
||||||
LOGDEB(("SpellW::doExpand: aspell init error\n"));
|
LOGDEB(("SpellW::doExpand: aspell init error\n"));
|
||||||
return;
|
return;
|
||||||
@ -101,12 +103,10 @@ void SpellW::doExpand()
|
|||||||
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
|
LOGERR(("SpellW::doExpand:suggest failed: %s\n", reason.c_str()));
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
return;
|
|
||||||
}
|
}
|
||||||
#endif
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
suggsTE->clear();
|
|
||||||
if (suggs.empty()) {
|
if (suggs.empty()) {
|
||||||
suggsTE->append(tr("No spelling expansion found"));
|
suggsTE->append(tr("No spelling expansion found"));
|
||||||
} else {
|
} else {
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user