Uwe Stöhr wrote:
Jean-Marc Lasgouttes schrieb:
Uwe> that only *.ispell is used
Uwe> as file filter when ispell is set in the preferences and *.pws
Uwe> only when aspell ist set? If yes I can have a look.
Yes, something like that. Thanks.
Is the attached OK?
In principle No, this is not OK: "#ifdef USE_ISPELL" should be placed in
ControlSpellchecker.
But there are much more horrible things in this controller say at the
end, yes, this is OK.
Abdel.
regards Uwe
------------------------------------------------------------------------
Index: ControlPrefs.C
===================================================================
--- ControlPrefs.C (revision 16941)
+++ ControlPrefs.C (working copy)
@@ -132,9 +132,15 @@
docstring const ControlPrefs::browsedict(docstring const & file) const
{
- return browseFile(file,
- _("Choose personal dictionary"),
- FileFilterList(_("*.ispell")));
+ #if defined(USE_ISPELL)
+ return browseFile(file,
+ _("Choose personal dictionary"),
+ FileFilterList(_("*.ispell")));
+ #elif defined(USE_ASPELL)
+ return browseFile(file,
+ _("Choose personal dictionary"),
+ FileFilterList(_("*.pws")));
+ #endif
}