diff options
| author | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-30 21:57:35 +0000 |
|---|---|---|
| committer | Patrick Storz <eduard.braun2@gmx.de> | 2019-03-30 21:57:35 +0000 |
| commit | 492b438da65ad813e8803b87e6748536b82fbf8a (patch) | |
| tree | 83cb15284d1395dba975844585c3315c1c0591da /src/ui/dialog/inkscape-preferences.cpp | |
| parent | Usage of get_program_dir() is more appropriate here (diff) | |
| download | inkscape-492b438da65ad813e8803b87e6748536b82fbf8a.tar.gz inkscape-492b438da65ad813e8803b87e6748536b82fbf8a.zip | |
Aspell: No need to explicitly set prefix anymore
Aspell (at least the MSYS2 version) is properly relocatable these
days.
Diffstat (limited to 'src/ui/dialog/inkscape-preferences.cpp')
| -rw-r--r-- | src/ui/dialog/inkscape-preferences.cpp | 16 |
1 files changed, 1 insertions, 15 deletions
diff --git a/src/ui/dialog/inkscape-preferences.cpp b/src/ui/dialog/inkscape-preferences.cpp index a3a9baf0f..2b1a23571 100644 --- a/src/ui/dialog/inkscape-preferences.cpp +++ b/src/ui/dialog/inkscape-preferences.cpp @@ -2309,21 +2309,7 @@ void InkscapePreferences::initPageSpellcheck() std::vector<Glib::ustring> languages; std::vector<Glib::ustring> langValues; - AspellConfig *config = new_aspell_config(); - -#ifdef _WIN32 - // on windows, dictionaries are in a lib/aspell-0.60 subdir off inkscape's executable dir; - // this is some black magick to find out the executable path to give it to aspell - char exeName[MAX_PATH+1]; - GetModuleFileName(NULL, exeName, MAX_PATH); - char *slashPos = strrchr(exeName, '\\'); - if (slashPos) - { - *slashPos = '\0'; - } - // g_print ("%s\n", exeName); - aspell_config_replace(config, "prefix", exeName); -#endif + AspellConfig *config = new_aspell_config(); /* the returned pointer should _not_ need to be deleted */ AspellDictInfoList *dlist = get_aspell_dict_info_list(config); |
